Page 2 of 2

Re: Sending events when downtime ends

Posted: Thu Sep 25, 2014 7:26 pm
by Fred Kroeger
Thanks Troy - If it's acknowldeged then that's OK as it means someone knows about the event.
However we have set the Notification Interval to 0 as we only want 1 notification to be sent out.
While it's in downtime, the notification doesn''t get sent but if the event is still active when it comes out of downtime then we don't know about it unless someone manually checks the Nagios console.
An example is we have scheduled downtime for automated server patching. The server or a service fails to restart after the patching and we don't get any notifications of the failure/s when it comes out of downtime.

Fred

Re: Sending events when downtime ends

Posted: Fri Sep 26, 2014 10:51 am
by Box293
Fred Kroeger wrote:However we have set the Notification Interval to 0 as we only want 1 notification to be sent out
Unfortunately this is your Achilles heel.

You could possibly write a couple of scripts that:
  • Before downtime starts change the notification interval to 10 for all objects that have it set to 0
    Sometime after downtime ends and you've received alerts, run the script again to change the notification interval back to 0

Re: Sending events when downtime ends

Posted: Mon Oct 06, 2014 7:26 pm
by Fred Kroeger
Just thinking this through a bit further, if the downtime is longer than the notification interval, then I would still have the same problem that when downtime ended, no notifications would be sent?

regards... Fred

Re: Sending events when downtime ends

Posted: Mon Oct 06, 2014 8:00 pm
by Fred Kroeger
Sorry... just realised this is an interval, so it will keep sending notifications.
I guess it will work, however this shows that Nagios can't be relied on for a "lights out" operation.
Someone will always have to manually check the state of Hosts/Services after a downtime ends.

Re: Sending events when downtime ends

Posted: Tue Oct 07, 2014 4:32 pm
by tmcdonald
I guess you could have a cron job that watches the nagios log for downtime ending, then schedules checks/alerts right away. Still would be run on a 1-minute or so interval, but it's getting closer to what you need.

Re: Sending events when downtime ends

Posted: Wed Jan 07, 2015 1:20 am
by Fred Kroeger
I have logged an issue in tracker as we don't get notifications or events from the event handler when servers go down during a scheduled downtime and remain down after downtime ends.
We can't rely on Nagios to provide automated notifications/events.

http://tracker.nagios.org/view.php?id=660

Fred

Re: Sending events when downtime ends

Posted: Wed Jan 07, 2015 3:47 pm
by lmiltchev
Thanks for posting the bug report, Fred!