schedule downtime in Nagios core

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

schedule downtime in Nagios core

Post 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 ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: schedule downtime in Nagios core

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked