Page 1 of 1
A disabled host notifications is still emailing me the notif
Posted: Wed Jan 11, 2012 3:49 am
by jlee
Hi,
I am running Nagios XI 2011R1.5.
I have a host which is down (offonline).
I have disabled host notifications for the host, and set the Acknowledgements for the alert but it is still emailng me the notifications.
What is the problem here? How can I fix this?
Thanks,
James
Re: A disabled host notifications is still emailing me the n
Posted: Wed Jan 11, 2012 12:00 pm
by lmiltchev
If you see in the web interface that Notifications for this particular host are disabled (Home->Details->Host detail), then you shouldn't be receiving notifications.
Did you check the timestamps of these notifications? Is it possible that you had way to many notifications in the mail queue, and kept receiving them even AFTER you disabled notifications for this host?
Re: A disabled host notifications is still emailing me the n
Posted: Mon Jan 23, 2012 3:05 pm
by niebais
Here's what I found.
cd /usr/local/nagios/etc/hosts. See if the "hostname".cfg file still exists. If it does, manually move the file to the /tmp/ folder (in case you need it) and then restart nagios. I've seen that happen occassionaly, but I'm not sure how to duplicate the problem yet. Usually, the invisible host disappears.
If you want to completely clean up nagios (and I wouldn't recommend this!) is to cd /usr/local/nagios/etc/hosts and remove all the .cfg files. Then cd /usr/local/nagios/etc/services and remove all the .cfg files. Then go into the nagios console and click apply configuration. For my smaller nagios setups, that seems to clean things up rather well.
Re: A disabled host notifications is still emailing me the n
Posted: Tue Jan 24, 2012 12:57 pm
by scottwilkerson
niebais wrote:Here's what I found.
cd /usr/local/nagios/etc/hosts. See if the "hostname".cfg file still exists. If it does, manually move the file to the /tmp/ folder (in case you need it) and then restart nagios. I've seen that happen occassionaly, but I'm not sure how to duplicate the problem yet. Usually, the invisible host disappears.
If you want to completely clean up nagios (and I wouldn't recommend this!) is to cd /usr/local/nagios/etc/hosts and remove all the .cfg files. Then cd /usr/local/nagios/etc/services and remove all the .cfg files. Then go into the nagios console and click apply configuration. For my smaller nagios setups, that seems to clean things up rather well.
thanks for helping out. Make sure you make a backup of anything being removed, at least until you know it worked correctly