Problem: Distributed Monitoring "Status Information" = $OUTPUT$

Marc Powell marc at ena.com
Fri Sep 16 17:18:26 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of nlehouil at telusplanet.net
> Sent: Friday, September 16, 2005 9:59 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem: Distributed Monitoring "Status
> Information" = $OUTPUT$
> 
> Hi all,
> 
> I need a little help with this one.  I have setup distributed
monitoring
> within
> a test environment.  I have one box configured as a remote sending its
> status
> checks using nsca.  I also have a central monitoring box configured
that
> accepts the remote boxes send_nsca's.
> 
> The problem is that it shows the following in the central server's
> nagios.log:
> 
> [1126844773] EXTERNAL COMMAND:
> PROCESS_SERVICE_CHECK_RESULT;remote;PING;0;$OUTPUT$
> [1126844833] EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;remote;Root
> Partition;0;$OUTPUT$
> [1126844893] EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;remote;Total
> Processes;-1;$OUTPUT$
> [1126844953] EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;remote;Current
> Load;0;$OUTPUT$
> [1126845013] EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;remote;Current
> Users;0;$OUTPUT$
> [1126845073] EXTERNAL COMMAND:
> PROCESS_SERVICE_CHECK_RESULT;remote;PING;0;$OUTPUT$
> 
> $OUTPUT$ should be "PROCS OK: 50 processes"
> 
> Here is the commands in the checkcommands.cfg:
> #############################################################
> define command{
>         command_name    submit_check_result
> 
> command_line
> /usr/local/nagios/libexec/eventhandlers/submit_check_result
> $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$'
>         }

[snippity do dah]

> 
> On the central server it show all the proper information except the
check
> command output.  Why?

Since everything else looks ok, I would have to guess that you're using
Nagios 2.x and should be using '$SERVICEOUTPUT$'.

--
Marc


-------------------------------------------------------
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