<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17998"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI; WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV> </DIV>
<DIV> To share, I did what Dan recommended. Here is what I put my crontab:</DIV>
<DIV> </DIV>
<DIV>00 06 15-21 * * test `date +\%a` = Sat && /opt/nagios/libexec/contrib/disable_notifications.sh<BR>00 07 15-21 * * test `date +\%a` = Sat && /opt/nagios/libexec/contrib/enable_notifications.sh<BR></DIV>
<DIV> The third Sat falls on the fifteenth through the twenty-first. So on those days, it runs a test command to see if it's Sat. If so, then run the disable notifications script at 6, then run the enable_notifications script at 7.</DIV>
<DIV> </DIV>
<DIV> The scripts are from the link you listed, and:</DIV>
<DIV><A href="http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=8">http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=8</A></DIV>
<DIV> Note: my printf command is in /usr/bin/printf, so I had to modify the scripts. Also, make sure that you have the path exactly correct for YOUR nagios.cmd file.<BR><BR></DIV>
<DIV> </DIV>
<DIV>
<DIV>
<DIV><EM><STRONG></STRONG></EM></DIV>
<DIV><EM><STRONG>
<DIV><EM><STRONG>Jon Adcock</STRONG></EM></DIV>
<DIV></STRONG></EM><FONT size=1 face=Tahoma>Network Systems Administrator</FONT></DIV></DIV>
<DIV><FONT size=1 face=Tahoma>Leon County MIS<BR>301 S. Monroe St.<BR>Tallahassee, FL 32301<BR>Office: (850) 606-5518</FONT></DIV>
<DIV><A href="http://www.leoncountyfl.gov/">http://www.leoncountyfl.gov</A></DIV>
<DIV>"People Focused. Performance Driven."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thank you for your e-mail. Please note that under Florida's Public Records</DIV>
<DIV>laws, most written communications to or from county staff or officials </DIV>
<DIV>regarding county business are public records available to the public and</DIV>
<DIV>media upon request. Your e-mail communications may therefore be</DIV>
<DIV>subject to public disclosure.</DIV>
<DIV> </DIV></DIV>>>> On 2/18/2013 at 12:32 PM, Daniel Wittenberg <daniel.wittenberg.r0ko@statefarm.com> wrote:<BR></DIV>
<TABLE style="MARGIN: 0px 0px 0px 15px; FONT-SIZE: 1em" border=0 bgColor=#f3f3f3>
<TBODY>
<TR>
<TD>
<DIV style="BORDER-LEFT: #050505 1px solid; PADDING-LEFT: 7px">
<DIV>You can do it programmatically with cron through the external commands, a little cleaner approach:</DIV>
<DIV><BR></DIV>
<DIV><A href="http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=7">http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=7</A></DIV>
<DIV><BR></DIV>
<DIV>Dan</DIV>
<DIV><BR></DIV><BR>
<DIV>
<DIV>On Feb 18, 2013, at 11:27 AM, Jon Adcock wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<META name=GENERATOR content="MSHTML 8.00.7601.17998">
<DIV style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV> </DIV>
<DIV> Within Nagios, is there some way to disable ALL Nagios notifications from 6:00 AM to 7:00 AM every 3rd Saturday of every month?</DIV>
<DIV> </DIV>
<DIV> I could run a cron job that replaced the nagios.cfg file with one that has enable_notifications=0 at 6:00 AM (and restart the service), then run another cron job that replaced the nagios.cfg file with the original file at 7:00 AM (and restart the service), but I'm looking for a solution within Nagios.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV><EM><STRONG></STRONG></EM></DIV>
<DIV><EM><STRONG>
<DIV><EM><STRONG>Jon Adcock</STRONG></EM></DIV></STRONG></EM>
<DIV><EM><STRONG></STRONG></EM><FONT size=1 face=Tahoma>Network Systems Administrator</FONT></DIV></DIV>
<DIV><FONT size=1 face=Tahoma>Leon County MIS<BR>301 S. Monroe St.<BR>Tallahassee, FL 32301<BR>Office: (850) 606-5518</FONT></DIV>
<DIV><A href="http://www.leoncountyfl.gov/">http://www.leoncountyfl.gov</A></DIV>
<DIV>"People Focused. Performance Driven."</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thank you for your e-mail. Please note that under Florida's Public Records</DIV>
<DIV>laws, most written communications to or from county staff or officials </DIV>
<DIV>regarding county business are public records available to the public and</DIV>
<DIV>media upon request. Your e-mail communications may therefore be</DIV>
<DIV>subject to public disclosure.</DIV>
<DIV> </DIV></DIV></DIV>------------------------------------------------------------------------------<BR>The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, <BR>is your hub for all things parallel software development, from weekly thought <BR>leadership blogs to news, videos, case studies, tutorials, tech docs, <BR>whitepapers, evaluation guides, and opinion stories. Check out the most <BR>recent posts - join the conversation now. <A href="http://goparallel.sourceforge.net/_______________________________________________">http://goparallel.sourceforge.net/_______________________________________________</A><BR>Nagios-users mailing list<BR><A href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A><BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<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</BLOCKQUOTE></DIV><BR></DIV></TD></TR></TBODY></TABLE></BODY></HTML>