submit_check_result always critical

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Nov 14 13:54:50 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13/11/07 10:26 PM, Robert Gil wrote:
> 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$'
>         }

I'm not sure if you got it right. As I understand it your nagios sends
the current check result back to itself, so it's obvious the state never
change.

If you want to do active monitoring you should use an active check, and
if you want to do passive monitoring the command should run on the
remote host (ex. from crontab) and use send_nsca to report back to
nagios (in that case you should have active checks disabled on the
service, and eventually freshness checking)

If you're trying to do something else then please explain.

Thanks,

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOvAa6dZ+Kt5BchYRAtPwAJ4s7/758uxUjEiYkjsSnRhF0rMgJQCfUqob
38LblcL52iOPeqrJtRRbhoE=
=oCBq
-----END PGP SIGNATURE-----

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