A disabled host notifications is still emailing me the notif

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jlee
Posts: 38
Joined: Fri May 13, 2011 11:23 am

A disabled host notifications is still emailing me the notif

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: A disabled host notifications is still emailing me the n

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: A disabled host notifications is still emailing me the n

Post 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.
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked