<div class="gmail_quote">On Fri, Jan 29, 2010 at 3:01 PM, Menard, Chris <span dir="ltr"><<a href="mailto:Chris.Menard@aspect.com">Chris.Menard@aspect.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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?<br></blockquote><div><br>Yes, if your event handlers are not written to consider scheduled downtime.<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
What is the easiest way to temporarily suspend event handlers?<br></blockquote><div> <br>Globally, enable_event_handlers nagios.cfg. Per service/host: event_handler_enabled in the definition.<br><br>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.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks,<br>
Chris<br>
<br>
(Nagios 3.1.2 in Solaris)<br>
<br>
------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br><br clear="all"><br>-- <br>Martin Melin<br>____________________________<br>op5 AB<br><a href="http://www.op5.com">http://www.op5.com</a><br><br><a href="http://www.op5.org/">http://www.op5.org/</a><br>
<a href="http://www.op5.com/op5/products/network-monitor/nagios/">http://www.op5.com/op5/products/network-monitor/nagios/</a> <br>