Nsca status information $output$


I’ve setup a distributed monitoring with 1 nagios server doing the active checks and a second one only recieving passive checks with nsca.
The only problem I have is that on the server that recieves the passive checks the status information for every service check is $output$
and not the actual status information I have on the nagios doing the active checks.
servername, servicename and status are ok

I followed the documentation on nagios.sourceforge.net/docs/3_0/distributed.html
Installation is done on ubuntu server 9.10 and so with nagios 3.0.6 and nsca 2.7.2


check the macro definitions on the docs… i think it should be $SERVICEOUTPUT$


It was a problem with the command definition, problem with copy/paste and It is indeed $SERVICEOUTPUT$


Maybe intresting to share this to, if someone wants to do passive host checks to

check command:

define command{
command_name submit_host_check
command_line /usr/lib/nagios/plugins/eventhandlers/submit_host_check $HOSTNAME$ ‘$HOSTSTATE$’ ‘$HOSTOUTPUT$’

submit_host_check script:


case “$2” in
UP )

/usr/bin/printf “%s\t%s\t%s\t%s\n” “$1” “$return_code” “$3” | /usr/sbin/send_nsca (nscaserverip) -c /etc/send_nsca.cfg