Page 1 of 1

schedule downtime in Nagios core

Posted: Fri Nov 30, 2012 8:58 am
by lafargeuser
We have maintenance activity that needs to be carried out on every 1st Sunday of the month at 16:30hrs – 18:30hrs. & there are 5 Servers will reboot in that timeframe. So i want to exclude those server’s from monitoring during the above mentioned down time & i sholdn't receive any alerts via Email in given time.
How can i achieve this ?

Re: schedule downtime in Nagios core

Posted: Fri Nov 30, 2012 2:57 pm
by abrist
Scheduling downtime for a server will disable notifications for the allotted time period. Core does not support recurring downtime out-of-box. If you absolutely needed to setup core for recurring downtime, you could script it through the Nagios external command pipe and add it to a monthly cron job, though it may not be worth the time to benefit ratio for only 5 servers.

Here are a few links to get you started on using the command pipe (if you choose to do so):

Overview of the external commands
List of acceptable commands for the Nagios external command pipe
Schedule downtime command