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
Sending events when downtime ends
-
Fred Kroeger
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Sending events when downtime ends
Unfortunately this is your Achilles heel.Fred Kroeger wrote:However we have set the Notification Interval to 0 as we only want 1 notification to be sent out
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
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
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
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.
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
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
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
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
Thanks for posting the bug report, Fred!
Be sure to check out our Knowledgebase for helpful articles and solutions!