re-execute an event handler just in case the service stays DOWN
Marc Haber
mh+nagios-users at zugschlus.de
Sun Jun 7 21:12:45 CEST 2009
Hi Ludse,
this issue was completely lost in space, sorry about that.
[quoting fixed to get things back in context]
On Thu, Jan 22, 2009 at 06:05:00PM +0100, Ludse Verhoeven wrote:
> Marc Haber wrote:
>> 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 forgot to mention that this is a host event handler.
>> 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?
> Maybe the "is_volatile" option is something for you (see:
> http://nagios.sourceforge.net/docs/3_0/volatileservices.html)
Unfortunately, is_volatile seems to be a service only option, and I am
checking the host. When I define a service to that host which has the
is_volatile option set, the service event handler is never called
since the service is not checked again once the host is in DOWN state.
Any additional hints?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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