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
A disabled host notifications is still emailing me the notif
Re: A disabled host notifications is still emailing me the n
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?
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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: A disabled host notifications is still emailing me the n
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: A disabled host notifications is still emailing me the n
thanks for helping out. Make sure you make a backup of anything being removed, at least until you know it worked correctlyniebais 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.