[Pkg-nagios-devel] Bug#608455: Reproducible on my servers, possible workaround/fix

jerickson at logicalnetworking.net jerickson at logicalnetworking.net
Wed Jun 22 23:08:32 UTC 2011


Hello,

I am having the exact problem Lee describes - I have figured a temporary
workaround on my end.. I do not know how to submit patches, but here is
what I did:

In my Nagios 'commands.cfg' file on the distributed server, I had the
following for submitting check results via NSCA:

define command{
   command_name  
/usr/share/nagios3/plugins/eventhandlers/distributed-monitoring/submit_check_result_via_nsca
$HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$'
   }



By using the information in
http://nagios.sourceforge.net/docs/3_0/macrolist.html - I changed

$SERVICESTATE$
 -to-
$SERVICESTATEID$

in the command stanza. By doing this, the correct information (numerical
value) gets sent to the NSCA on the central server, and the correct state
is reflected within the web UI.


Cheers,
Jordan Erickson






More information about the Pkg-nagios-devel mailing list