I posted this to nagios-users too, I’m running to a problem with submit_check_result…
Hey everyone – I’m having a problem with
submit_check_result. I’m attempting to setup a
distributed configuration with Nagios 2.0. On the
distributed server I have
and from the submit_check_result script:
/usr/bin/printf “%s\t%s\t%s\t%s\n” “$1” “$2"
”$return_code" “$4” |
/usr/local/libexec/nagios/send_nsca 192.168.11.27 -c
and in the checkcommands.cfg:
$HOSTNAME$ ‘$SERVICEDESC$’ $SERVICESTATE$ ‘$OUTPUT$’
Here seems to be the problem, i never get a
PROCESS_SVC_CHECK_RESULT command entered. I have
debugging turned on for nsca and when watch
/var/log/messages on the central server I see this
Aug 27 15:33:13 nagios3 nsca: SERVICE CHECK ->
Host Name: ‘w2k-813’, Service Description: ‘submit’,
Return Code: ‘0’, Output: '$OUTPUT$'
Aug 27 15:33:13 nagios3 nsca: End of
This is all running on FreeBSD as well. Is there
something wrong with printf or one of the variables?
As you can tell, i’m not very good with shell
programming. If there is any more information I can
provide, please let me know. Any insight at all into
this problem would be very much appreciated.