submit_check_result always critical
Robert Gil
rgil at liquidnet.com
Wed Nov 14 04:26:53 CET 2007
Getting a similar error. Still critical every time.
Nov 13 22:16:53 SERVER nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;rem5;NTP;2;(No output!)
Nov 13 22:17:02 SERVER nsca[10294]: Handling the connection...
Nov 13 22:17:03 SERVER nsca[10294]: SERVICE CHECK -> Host Name: 'rem5',
Service Description: 'Time', Return Code: '2', Output: '(No output!)'
Nov 13 22:17:03 SERVER nsca[10294]: End of connection...
Nov 13 22:17:03 SERVER nagios: EXTERNAL COMMAND:
PROCESS_SERVICE_CHECK_RESULT;rem5;Time;2;(No output!)
define command{
command_name submit_check_result
command_line
/usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$
'$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$'
}
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Tuesday, November 13, 2007 6:19 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] submit_check_result always critical
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Robert Gil
> Sent: Tuesday, November 13, 2007 3:34 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] submit_check_result always critical
>
> I am setting up a distributed nagios environment for the first time
and
> have come into a couple road blocks.
>
>
>
> For some reason the passive checks always come back as critical. From
the
> command line they show correctly. Also the $OUTPUT$ variable does not
> appear to return any information in the submit_check_result script. I
got
> the script out of the documentation. Perhaps the variable is
incorrect?
Looks to me like you might have been referencing the 1.0 documentation
($OUTPUT$ is a 1.x only macro). The 2.0 documentation on Distributed
Monitoring uses the correct macros.
http://nagios.sourceforge.net/docs/2_0/distributed.html
--
Marc
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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