Page 1 of 1
Alert no more than one time
Posted: Mon Sep 09, 2019 7:59 am
by ronaldocr
Hi - Is there way I can limit only one notification email and no more than that??
Like we currently monitor /var/core and alert if there any core files. But after 6 PM on weekdays and on the weekends there are ton of emails as we have it checking and alerting every 15 mins. So I would like to configure in a way that I get only one alert and no more than even if they are multiple files dump/generated in the /var/core. How do I go about that??
Thanks
Re: Alert no more than one time
Posted: Mon Sep 09, 2019 8:07 am
by scottwilkerson
If you set the "Notification Interval" value to 0, Nagios will not re-notify contacts about problems for this host/service - only one problem notification will be sent out.
Re: Alert no more than one time
Posted: Mon Sep 09, 2019 1:30 pm
by ronaldocr
Thanks, it worked as expected.
So we want to be alerted every 15 minutes if a service is down during prod hours which is 06:00-18:00 and alerted only once during non prod hours from 18:00-06:00.
Do I need to create two time periods, service templates and services?? one for prod and one non prod??
Re: Alert no more than one time
Posted: Tue Sep 10, 2019 12:21 pm
by scottwilkerson
ronaldocr wrote:Do I need to create two time periods, service templates and services?? one for prod and one non prod??
With this requirement, that may be the only option, the only other I can think of would be to create an escalation for each of the hosts/services the business hours time period and have the 60 minute notification interval on the escalation.
But I have not tested if this would have the desired affect.
Re: Alert no more than one time
Posted: Wed Sep 18, 2019 10:18 am
by ronaldocr
It worked thanks a lot
Re: Alert no more than one time
Posted: Wed Sep 18, 2019 10:26 am
by scottwilkerson
ronaldocr wrote:It worked thanks a lot
Great!
Locking