Page 1 of 1

Disable Notifications for Service via Config

Posted: Thu Aug 04, 2016 9:46 am
by and1100
Hi,

I am trying to leave a service check on but disable the notification emails that the check would send. Ideally, I'd want to make this change within the config file on the Nagios service. I've tried the following:

- removed the contact/contact groups in the service check. When I do this, it sends email to our primary alerting distro. I wasn't sure what superseded that.
- added enable_notifications = 0 to the service check. Didn't seem like this did anything.

Any assistance would be greatly appreciated!

Re: Disable Notifications for Service via Config

Posted: Thu Aug 04, 2016 9:55 am
by and1100
Just to append this, if I wanted to disable notifications for a host itself, is the method the same? Thanks.

Re: Disable Notifications for Service via Config

Posted: Thu Aug 04, 2016 11:53 am
by bwallace
added enable_notifications = 0 to the service check
This is correct -
"notifications_enabled *: This directive is used to determine whether or not notifications for this service are enabled. Values: 0 = disable service notifications, 1 = enable service notifications.
Refer to https://assets.nagios.com/downloads/nag ... tions.html

Did you restart Nagios for the change to take effect?

I know you said you'd prefer to make this change within the config file, but it's quite easy to do via the UI:
Current Status (left side menu) > Services... click on the Service or Host that you want to disable notifications for. On the right hand side "Host Commands" or "Service Commands" > click on "Disable notifications for this host" or "Disable notifications for this service".