I'm having a little trouble getting the check_sip plugin to work.
If I run the command from the terminal it works fine
Code: Select all
[root@nagios objects]# /usr/local/nagios/libexec/check_sip -u sip:user@server.com -H II.PP.AA.SS
SIP/2.0 200 OK, 3.555702 seconds response time, cnt=4|rtt=3.555702s;cnt=4;0.5s;1s;0:10; code=200
My Config -
/usr/local/nagios/etc/objects/commands.cfg
Code: Select all
define command{
command_name check_sip
command_line $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
}
Code: Select all
define service{
use router-service ; Name of service template to use
host_name CallSwitch
service_description SIP CHECK MY SERVER
check_command check_sip!sip:user@myserver.com!II.PP.AA.SS
}
Can anyone help?
Thanks