alert notification setting.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

alert notification setting.

Post by amit.ahuja »

I have my notification options setting at w,c,r. Alerts are sending out every 15 mins when services go to critical or recovery state. I want notification to send out only once for critical or warning and another one when it only goes to recovery state instead of every 15 mins. How do I do that?


max_check_attempts 3
check_interval 15
retry_interval 1
check_period 24x7
contact_groups support
event_handler notify-service-by-email
notification_interval 15
notification_period 24x7
notification_options w,c,r
notifications_enabled 1
register 1
}
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: alert notification setting.

Post by tmcdonald »

Setting the notification interval to 0 will cause just one to be sent out for a given state.

https://assets.nagios.com/downloads/nag ... ml#service
Former Nagios employee
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: alert notification setting.

Post by haile711 »

Hey tmcdonald,

So if we set this to "0" it will only notify if there is a change in the state of the service?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: alert notification setting.

Post by hsmith »

That's the intended functionality, yes.
This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. 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 service - only one problem notification will be sent out.
https://assets.nagios.com/downloads/nag ... tions.html
Former Nagios Employee.
me.
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: alert notification setting.

Post by haile711 »

Thanks you for your respond hsmith. I will continue testing this and let you know.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: alert notification setting.

Post by hsmith »

Sounds good. Let us know what you come up with.

Thanks!
Former Nagios Employee.
me.
Locked