[Nagiosplug-devel] check_by_ssh return code losed
sgala at sgala.com
Wed Aug 10 03:56:27 CEST 2005
I have a strage problem. I have configured check_by_ssh to check the
status of a remote service. When I kill the service to generate an alert
I show that in nagios the status it's still "OK" and the state type it's
"HARD" with the correct status information.
I have executed manually the commands and i've discovered that
chech_by_ssh seem to lose the exit val of the lanunched command.
Debian Sarge stable with only plugins installed , the host target to check
-w 1:500 -c 1:500 -C daemon_bill.pl -a 'sales_230'
PROCS CRITICAL: 0 processes with command name 'daemon_bill', args 'sales_230'
# echo $?
and this is correct!
FreeBSD with nagiosplug-1.4 where there is nagios
# ./check_by_ssh -H $HOST -p $PORT -C "/opt/nagios-plugins-1.4/plugins/check_procs -w 1:500 -c 1:500 -C deamon_bill -a 'sales_230'" -f -l root -i /home/nagios/.ssh/id_rsa
PROCS CRITICAL: 0 processes with command name 'deamon_bill', args 'sales_230'
# echo $?
this is not correct... the exit val should be 2 and not 0, right?
Have you ideas?
More information about the Devel