return code lost during sending check result

Jakub Safar safarj at kancelarskestroje.cz
Wed Sep 21 17:08:49 CEST 2005


Hello,

exit return codes of check_ping is lost by Nagios while sending results
through NSCA to other Nagios server.

Command "submit_check_result" is defined like this:
submit_check_result_via_nsca $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$
'$OUTPUT$'

submit_check_result_via_nsca includes:
cmdline="$1;$2;$3;$4"
$echocmd "$1\t$2\t$3\t$4\n" | $NscaBin $NagiosHost -p $NagiosHostPort -c
$NscaCfg

Both servers run their active checks ok, connection through NSCA works
like a bliss (ok as well:).

Nagios harvesting passive checks throuh NSCA logically gets:

Sep 21 15:34:22 ns nsca[7264]: SERVICE CHECK -> Host Name: 'blade-kvm',
Service Description: 'PING', Return Code: '0', Output: 'CRITICAL -
Plugin timed out after 10 seconds'

Sep 21 15:34:22 ns nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;blade-kvm;PING;0;CRITICAL - Plugin timed
out after 10 seconds

Versions of Nagios installed on the gathering server is:
nagios-1.2-2.2.el4.rf
nagios-nsca-2.4-2.2.el4.rf
nagios-plugins-1.4-2.2.el4.rf

Jakub



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list