Page 1 of 1
Email notifications setup issues
Posted: Mon May 18, 2020 5:53 am
by luoyihui
Hello Nagios Community!
I'm trying to optimize the email notification sendings in our nagios server. It sends too much email, by default.
So, I want nagios to send email notification ONLY ONCE and not more, during a service is in hard state. I find nowhere solution for this option.
Thanks in advance.
Re: Email notifications setup issues
Posted: Tue May 19, 2020 3:31 pm
by benjaminsmith
Hi!
Yeah, you can set it up to send only once, try changing the "Notification interval" to "0" (zero) for the particular host/service.
notification_interval: This directive is used to define the number of "time units" to wait before re-notifying a contact that this service 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.
I hope that helps, and let us know if you get working correctly or if you have questions.
Thanks for posting to the Community Forum!
Reference:
https://assets.nagios.com/downloads/nag ... tions.html
Re: Email notifications setup issues
Posted: Wed May 20, 2020 8:46 am
by luoyihui
benjaminsmith wrote:Hi!
Yeah, you can set it up to send only once, try changing the "Notification interval" to "0" (zero) for the particular host/service.
notification_interval: This directive is used to define the number of "time units" to wait before re-notifying a contact that this service 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.
I hope that helps, and let us know if you get working correctly or if you have questions.
Thanks for posting to the Community Forum!
Reference:
https://assets.nagios.com/downloads/nag ... tions.html
Hello benjaminsmith!
Thank you for your quick response.
Looks like it solved our problem!
Best regards.
Re: Email notifications setup issues
Posted: Wed May 20, 2020 9:03 am
by scottwilkerson
luoyihui wrote:Hello benjaminsmith!
Thank you for your quick response.
Looks like it solved our problem!
Best regards.
Great!
Locking thread