Page 1 of 1
Single notification required for Email notification
Posted: Mon Feb 19, 2018 8:37 pm
by Gonela
Hi Team,
In my nagiosxi environment , we required only one notification if services or hosts goes down.
what setting will i use notification interval and host escalation setting
Re: Single notification required for Email notification
Posted: Tue Feb 20, 2018 10:34 am
by kyang
Hello!
You can accomplish this by setting the
notification_interval to 0.
Setting this to 0 will only send 1 notification and that is when the host or service goes down.
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.
Quoted from the object definitions documentation.
The same goes for host escalation when setting the notification interval.
Please read more about the definition settings for host escalation.
https://assets.nagios.com/downloads/nag ... escalation
Let me know if this helps!
Re: Single notification required for Email notification
Posted: Thu Feb 22, 2018 2:54 am
by Gonela
Hi,
Suppose if services goes from WARNING to CRITICAL . Again alert will generate correct?
It there any way to stop that types of notification.
Ex: Service 1 status critical for : CHECK_NRPE: Socket timeout after 10 seconds. ---------> first 5min changed to
Service 1 status critical for : SQLWriter: Not found --------------------next 5min
Here status critical to critical and it will generate two notification for same service. is there any way to stop this type of alert
Re: Single notification required for Email notification
Posted: Thu Feb 22, 2018 12:55 pm
by kyang
If you set the notification_interval to 0 then it will alert you only once. Because the host or service has gone down.
But if there is a warning to critical then it will notify you again because it is a state change.
It there any way to stop that types of notification.
Ex: Service 1 status critical for : CHECK_NRPE: Socket timeout after 10 seconds. ---------> first 5min changed to
Service 1 status critical for : SQLWriter: Not found --------------------next 5min
Here status critical to critical and it will generate two notification for same service. is there any way to stop this type of alert
Based on this, do you mean you are receiving two alerts (EX: through the GUI?) or two notifications? (EX: two critical emails)
Can you provide this example you are seeing.
Also, how is this service defined using check_nrpe and another plugin? Can you also provide details on this?