delay notifications after hours

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
andrew2036
Posts: 2
Joined: Thu Oct 10, 2013 9:37 am

delay notifications after hours

Post by andrew2036 »

After hours, we have servers that are rebooting due to updates and they often can take several minutes to come back up. This frequently results in a Host Down and then a Host Up notification. Is there a way in Nagios 3 to have an after hours setup that either delays the notifications or adjusts the parameters that determine whether a host is down in order to avoid getting these false positives?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: delay notifications after hours

Post by tmcdonald »

Take a look at scheduled downtime: http://nagios.sourceforge.net/docs/3_0/downtime.html

You can do Fixed if you know what time the host goes down, or Flexible if you know it will happen but not when.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: delay notifications after hours

Post by abrist »

You can do this through timeperiods as well. Create a new timeperiod that excludes (or does not include) the after hours that your servers are under maintenance. Use this new time period for the hosts / services that are affected by the maintenance.
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.
andrew2036
Posts: 2
Joined: Thu Oct 10, 2013 9:37 am

Re: delay notifications after hours

Post by andrew2036 »

abrist wrote:You can do this through timeperiods as well. Create a new timeperiod that excludes (or does not include) the after hours that your servers are under maintenance. Use this new time period for the hosts / services that are affected by the maintenance.
If I use timeperiods to exclude (for example) midnight to 5am, if a host goes down during that time period and remains down past 5am will I get a notification?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: delay notifications after hours

Post by abrist »

Yes. Because the checks will fail once they start after the timperiod starts. Passive checks will trip freshness after the freshness interval as well.
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