Sending events when downtime ends

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Sending events when downtime ends

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Sending events when downtime ends

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Sending events when downtime ends

Post 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
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Sending events when downtime ends

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Sending events when downtime ends

Post 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.
Former Nagios employee
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Sending events when downtime ends

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Sending events when downtime ends

Post by lmiltchev »

Thanks for posting the bug report, Fred!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked