[smokeping-users] Help to execute a Java Program in Alert Section
Andre Gustavo Lomonaco
lomonaco at ipplus.com.br
Fri Jul 18 16:17:43 CEST 2008
Hi Everyone,
I´m trying integrate SmokePing to HP Service Desk. I wanna open a Service
Call or Incident raised by SmokePing.
I configured the Alerts Section using the following syntax:
+callmanagerskinny
type = rtt
pattern = <300
comment = Open a new Incident when something happens to CiscoCallManager
Skinny Service 2000
to = |/usr/local/j2sdk1.4.2_16/bin/java -cp
.:/usr/local/service/web-api.jar:/usr/local/service/ AbrirIncidenteSMOKEPING
edgetrigger = yes
++ CallManagerSkinny
menu = CallManager Skinny
title = CallManager Skinny
probe = TCPPing
alerts = someloss,callmanagerskinny
#slaves = boomer slave2
host = 192.168.1.5
pings = 5
port = 2000
When the alert is raised, I got the following information in my
/var/log/smokeping.log file
Jul 18 11:02:37 appliance smokeping[25386]:
Can't exec "/usr/local/j2sdk1.4.2_16/bin/java -cp
.:/usr/local/service/web-api.jar:/usr/local/service/
AbrirIncidenteSMOKEPING":
No such file or directory at lib/Smokeping.pm line 1816.
When I execute the same command in a Bash Shell (using Apache user) it works
without problem
I tried to create a Bash Script in /usr/local/service/ directory calling the
java program but I got similar behaviour
Any recommendation ??
Thanks in Advanced
Andre Lomonaco
More information about the smokeping-users
mailing list