Page 1 of 1

Nagios notification

Posted: Wed Jun 28, 2017 3:25 am
by ismail
Hello

I have a big problem in Nagios email notification , I recive notification every 1 minute fore down services or host
I need to : recive notification : one alert when host or service is down
second alert when host or service is up


*******Ineed just 2 notification**********

Re: Nagios notification

Posted: Wed Jun 28, 2017 10:12 am
by mcapra
From this page:
https://assets.nagios.com/downloads/nag ... tions.html
notification_interval:
This directive is used to define the number of "time units" to wait before re-notifying a contact that this host is still down or unreachable. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this host - only one problem notification will be sent out.

Re: Nagios notification

Posted: Wed Jun 28, 2017 1:21 pm
by tgriep
Thanks @mcapra for the help.
Yes, setting the interval_length to 0 will only send one notification when a service or host changes state and not repeat the notifications.