Turn off email notifications system wide

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Turn off email notifications system wide

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Turn off email notifications system wide

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Turn off email notifications system wide

Post by jbennett »

Well that was beyond simple. Now I feel like a goober.

Thanks!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Turn off email notifications system wide

Post by slansing »

Closing as resolved.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Turn off email notifications system wide

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: Turn off email notifications system wide

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Turn off email notifications system wide

Post by slansing »

Great thanks for letting us know!
Locked