<HTML dir=ltr><HEAD><TITLE>[Nagios-users] How to Schedule regular weekly downtime?</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16444"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText32255>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>You could use a time exclusion in nagios.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>In your time periods, make a copy of 24x7 calling it something different and use the exclusion.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Then, with your server/services, change the notification_period to that new time period to avoid receiving notifications during the reboot.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>example, if you want to exclude notifications from 2am-3am, you would do this:</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face="Courier New">define timeperiod{<BR>        timeperiod_name windows-update<BR>        alias           windows-update<BR>        sunday          00:00-24:00<BR>        monday          00:00-24:00<BR>        tuesday         00:00-24:00<BR>        wednesday       00:00-24:00<BR>        thursday        00:00-24:00<BR>        friday          00:00-24:00<BR>        saturday        00:00-24:00<BR>        exclude         reboot<BR>        }<BR></FONT></DIV>
<DIV dir=ltr><FONT size=2 face="Courier New">define timeperiod{<BR>        timeperiod_name reboot<BR>        alias           reboot<BR>        saturday        02:00-03:00<BR>        }<BR></FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Nagios will still show host and service messages, but won't send notifications in that time period.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial><A href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#timeperiod">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#timeperiod</A></FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial> </DIV></FONT></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Les Fenison [mailto:les@deltatechnicalservices.com]<BR><B>Sent:</B> Sat 11/21/2009 4:46 PM<BR><B>To:</B> Nagios Users Mailinglist<BR><B>Subject:</B> [Nagios-users] How to Schedule regular weekly downtime?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>I am monitoring a server that runs windows update and reboots every week<BR>on Saturday at the same time.  Is there any way to schedule this<BR>downtime without having to go enter it every week manually?<BR><BR><BR>------------------------------------------------------------------------------<BR>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<BR>trial. Simplify your report design, integration and deployment - and focus on<BR>what you do best, core application coding. Discover what's new with<BR>Crystal Reports now.  <A href="http://p.sf.net/sfu/bobj-july">http://p.sf.net/sfu/bobj-july</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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></FONT></P></DIV></BODY></HTML>