Alert - trigger only once per day
Alert - trigger only once per day
Is anyone aware of a way in Nagios to have an alert that when it triggers, only triggers once and then not again (even if the underlying condition remains the same in it's 'bad' state) until the next calendar day? My recommendation to the person requesting this was to handle it within the script he was using on the local server to do the check but wanted to make sure there was nothing within Nagios itself that could do this.
Re: Alert - trigger only once per day
The first thing that comes to mind is the Notification Interval. When looking at the service definition in the Core Config Manager, under the Alert Tab you'll find the Notification Interval. If you set this to 1440, that will give you 1 notification in 24 hours.
The only time this won't be the case is if the service check in question goes into another state. So if the service is OK, it goes to CRITICAL, you will get the 1 notification that day. But if it goes from CRITICAL to WARNING, you will get a new notification about it going to WARNING, unless you turn off WARNING notifications. Similarly you would get a notification if it went from CRITICAL to OK, unless you turned off Recovery notifications.
The only time this won't be the case is if the service check in question goes into another state. So if the service is OK, it goes to CRITICAL, you will get the 1 notification that day. But if it goes from CRITICAL to WARNING, you will get a new notification about it going to WARNING, unless you turn off WARNING notifications. Similarly you would get a notification if it went from CRITICAL to OK, unless you turned off Recovery notifications.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!