event handlers and Schedule Downtime
Martin Melin
martinm at op5.org
Fri Jan 29 15:33:32 CET 2010
On Fri, Jan 29, 2010 at 3:01 PM, Menard, Chris <Chris.Menard at aspect.com>wrote:
> I have a scheduled host downtime setup for Sunday. When I start to take
> services down, will event handlers still trigger and still try to restart
> what I want down?
>
Yes, if your event handlers are not written to consider scheduled downtime.
>
> What is the easiest way to temporarily suspend event handlers?
>
Globally, enable_event_handlers nagios.cfg. Per service/host:
event_handler_enabled in the definition.
However I would recommend you to use the $HOSTDOWNTIME$ and
$SERVICEDOWNTIME$ macros in your event handler definitions. If these macros
are non-zero, the service/host is in scheduled downtime. This will allow you
to have your event handlers decide how to proceed - maybe you'd like a
different action to be taken when there's scheduled downtime.
> Thanks,
> Chris
>
> (Nagios 3.1.2 in Solaris)
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-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
>
--
Martin Melin
____________________________
op5 AB
http://www.op5.com
http://www.op5.org/
http://www.op5.com/op5/products/network-monitor/nagios/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100129/15ed0a76/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-------------- next part --------------
_______________________________________________
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