Page 1 of 1

Turn off email notifications system wide

Posted: Wed Mar 27, 2013 8:04 am
by jbennett
As part of my move to a new Nagios box, I would like to disable notification emails on the old box system wide.

I'm worried that by using the bulk modification tool to do this, I will run into issues if I need to turn them back on.

The bulk modification tool only modifies the hosts and the services, not templates.

I have gone through and tried to use a template for all of my hosts and services in order to make modifications easier down the road. If I disable notifications at the host/service level, it overwrites the templates that are applied. If I need to enable notifications once more for some reason, Just turning notifications on at the host/service level might cause problems.

Am I looking at this the wrong way?

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 8:38 am
by lmiltchev
You can go to: Home->Monitoring Process->click on the "x", next to "Notifications" (the "Disable" action button) to disable notifications globally.

Hope this helps.

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 8:45 am
by jbennett
Well that was beyond simple. Now I feel like a goober.

Thanks!

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 8:48 am
by slansing
Closing as resolved.

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 10:53 am
by lmiltchev
jbennett,

Run the following command to start capturing output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
and click on the "Disable" Notifications button from the web interface. Wait for a while, then send me the output from running the tail.

Also, run the following commands and show me the output of it:

Code: Select all

ls -ld /usr/local/nagios/var/rw
ll /usr/local/nagios/var/rw/nagios.cmd
Are you having issues with disabling notifications globally?

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 11:21 am
by jbennett
I actually ended up restarting the nagios process and in the process got a Warning: Cannot set UID=500 error that I've gotten before.

Since this box needed to be rebooted anyways, I went ahead and rebooted it and now the notifications are disabled just as they should be.

Thanks so much!

Re: Turn off email notifications system wide

Posted: Wed Mar 27, 2013 11:22 am
by slansing
Great thanks for letting us know!