Event handler

Marc Powell marc at ena.com
Thu Aug 9 14:44:04 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Tony Delov
> Sent: Wednesday, August 08, 2007 9:51 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Event handler
> 
> Hi,
> I'm trying to differentiate in my event handler script between a
recover
> from a critical state and one from an unknown state.
> I need to run a script upon a recovery, but only a recovery from a
> critical hard state?
> Is there a way to do this?

Not by a simple macro but you could probable get it by inference. My
approach would be to pass the $LASTSERVICEWARNING,CRITICAL,UNKNOWN$
macros to the script and see which one was most recent. That might get
you the information you need.

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





More information about the Users mailing list