[Nagios-users] Disable ALL Nagios Notifications For One Hour, On One Day, Every Month

2013-02-18 Thread Jon Adcock
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? 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

Re: [Nagios-users] Disable ALL Nagios Notifications For One Hour, On One Day, Every Month

2013-02-18 Thread Daniel Wittenberg
You can do it programmatically with cron through the external commands, a little cleaner approach: http://old.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=7 Dan On Feb 18, 2013, at 11:27 AM, Jon Adcock wrote: Within Nagios, is there some way to disable ALL Nagios

Re: [Nagios-users] Disable ALL Nagios Notifications For One Hour, On One Day, Every Month

2013-02-18 Thread Jon Adcock
To share, I did what Dan recommended. Here is what I put my crontab: 00 06 15-21 * * test `date +\%a` = Sat /opt/nagios/libexec/contrib/disable_notifications.sh 00 07 15-21 * * test `date +\%a` = Sat /opt/nagios/libexec/contrib/enable_notifications.sh The third Sat falls on the

Re: [Nagios-users] Disable ALL Nagios Notifications For One Hour, On One Day, Every Month

2013-02-18 Thread nap
Le 18 févr. 2013 18:32, Jon Adcock adco...@leoncountyfl.gov a écrit : 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? I could run a cron job that replaced the nagios.cfg file with one that has