Page 1 of 1

Ghost Host

Posted: Tue Feb 25, 2014 10:53 am
by nottheadmin
I have a host that is no longer present on the network, have deleted the services and host from ccm but it's still there as a big critical alert.

I just looked in /usr/local/nagios/etc/hosts/ and sure enough, the <hostname>.cfg file is there.

I have searched around the forum and tried a few things, killall nagios etc..

Can I just delete it or will that break everything?

Cheers
M

Re: Ghost Host

Posted: Tue Feb 25, 2014 10:55 am
by tmcdonald
That's exactly what you need to do. See the following: http://support.nagios.com/wiki/index.ph ... t_Hosts.29

Re: Ghost Host

Posted: Wed Feb 26, 2014 5:09 am
by nottheadmin
OK I did that, removed it from /usr/local/nagios/etc/hosts, it was not in /usr/local/nagios/etc/services.

Wrote and verified the config files in CCM and then restarted nagios.

It's still there, triggering a critical alert.

find / -name <stickyhostname> reveals that there is still a file in /usr/local/nagios/share/perfdata/<stickyhostname>

Do i delete that as well?

edit: OK nevermind, I think I have got ride of it now.

You can can close this now, Thanks!.

Re: Ghost Host

Posted: Wed Feb 26, 2014 10:13 am
by tmcdonald
For future reference, the perfdata directory just holds temporary files used for graphing performance data from services.

Closing.