option to make nagios recover?

Payam Jahromi pjahromi at us.checkpoint.com
Fri Aug 17 19:11:05 CEST 2007


Thanks - I followed the PROCESS_SERVICE_CHECK_RESULT instructions and it
worked, but how to make it get it to alert that it recovered instead of just
recovering? Normally we get alerts when something is critical then recovers.

So my goal here is just to basically speed up the recovery alert instead of
waiting of the next check (for when I get paged at 4am and want to go back
to sleep and not worry about a recovery alert in 10 mins).



-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell
Sent: Friday, August 17, 2007 9:25 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] option to make nagios recover?



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Payam Jahromi
> Sent: Friday, August 17, 2007 11:07 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] option to make nagios recover?
> 
> Hi,
> 
> 
> 
> I'm running Nagios on Red Hat Linux, and I was wondering, when I do a
> manual test via the command line, is there a way to give an option to
have
> the check "recover" if the check passes? Without having to wait for
the
> next scheduled check?

That would depend on how you're manually testing. If you're running the
plugin from the shell, then nagios isn't directly aware that you are
doing that and doesn't see the results either way. It also wouldn't know
what host/service you would be testing to know where to apply the
results.

You can schedule an immediate check of the service from the Web GUI
(click on the service, then use the menu on the left to Re-schedule the
next check of this service), submit a passive OK result (same menu) or
do either of the above by writing to the external command file
(SCHEDULE_FORCED_SVC_CHECK, PROCESS_SERVICE_CHECK_RESULT from
http://www.nagios.org/developerinfo/externalcommands/commandlist.php?cat
egory_id=0&version_id=0&btnSubmit=Update) This last might be useful if
you were interested in creating a wrapper for your manual tests that
asked for the host/service that the results should apply to before
creating the appropriate external command for submission.



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