re-execute an event handler just in case the service stays DOWN

Joerg Linge pitchfork at ederdrom.de
Fri Jan 23 06:41:20 CET 2009


Marc Haber schrieb:
> Hi,
> 
> I would like one event handler to be re-executed just in case it
> failed for the first time. The docs
> (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you
> don't want that", but I am fairly confident that I want it in this case.
> 
> I have a nagios host in a unattended site which generally gets its
> internet access from the site network. In case of a site network
> failure, the host needs to dial in to the Internet via modem to be
> reachable for debugging purposes.
> 
> The nagios installation monitors a host on the Internet and has an
> event handler connected with this host which will initiate the dial-up
> when the "Internet host" goes into a HARD DOWN state.
> 
> I would like this event handler to be re-executed in case the dial-up
> connection doesn't come up or goes down _before_ nagios has detected
> that the "Internet host" is UP again.
> 
> Is there any way to accomplish this or am I better of with a cronjob
> which will initiate the dial-up from outside nagios?
> 
> Any hints will be appreciated.,

Hi Marc,
just use a notification to fire the eventhandler script.
Disadvantage: only triggered on HARD states.
Advantage: notification_interval to re-execute the script.

Joerg

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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