Single notification required for Email notification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Single notification required for Email notification

Post 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
kyang

Re: Single notification required for Email notification

Post 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!
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

Re: Single notification required for Email notification

Post 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
kyang

Re: Single notification required for Email notification

Post 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?
Locked