Page 1 of 1
phantom host
Posted: Sun Apr 07, 2013 9:05 pm
by KiwiBloke
Hi,
I have a Nagios XI 2012R1.6 server that is running happily. Except I noticed today while trouble shooting another issue that a few hosts do not have all the correct services being monitored even though those services are being applied to the hostgroups that these servers belong too.
After attempting and failing to update these services I decided to delete one of the hosts and recreate it....
So, I managed to delete it ok. but it still exists outside the configuration screens! (even its data files)
so I checked
hostgroups.cfg - it doesn't appear here
/hosts/ - it doesn' exist here either
Can you advise what i am not looking at, or what further information can I send you to help diagnose?
Cheers,
KB
Re: phantom host
Posted: Mon Apr 08, 2013 9:34 am
by sreinhardt
Just to verify, are you able to successfully verify and write configurations? It would seem that the database still believes that your host\services should be shown however the current nagios config does not seem to have the files. This generally is caused when the configuration is not able to be applied correctly, but that's not to say it is the only reason.
Re: phantom host
Posted: Mon Apr 15, 2013 3:09 pm
by KiwiBloke
Hi,
No, the configuration applies correctly, that's why it has taken me a while to notice.
I noticed that the host didn't have certain services applied to it, yet they were applied in the config, so i tried various things, ultimately trying to remove it, this is when noticed it wasn't in the configs but must be in the database.
so its in there as a phantom and i can't updated or delete it.
Re: phantom host
Posted: Mon Apr 15, 2013 3:17 pm
by abrist
Go to --> Configure --> Core Config Manager --> Tools --> Write Config Files. Click "Write" and then "Verify". DO NOT click restart or apply configuration just yet. Now go look in:
and
For your ghost host config. Remove those configs if they exist. Now try to restart nagios.
Re: phantom host
Posted: Tue Apr 23, 2013 12:13 am
by KiwiBloke
Hi,
Thanks for that. I did as you suggested. The server that is the problem didn't appear to be one of the configurations written out so there was nothing to delete.
After the restart the server still appears in the running configuration, as well as having several phantom services linked to it.
Looking forward to your next suggestion
C.
Re: phantom host
Posted: Tue Apr 23, 2013 9:32 am
by scottwilkerson
My guess would be that you have a hostgroup assigned to services then, which will add the services to every member of the hostgroup.
If you could please send a configuration snapshot either via PM or to
[email protected] with a link to this thread and also include the hostname/service name in question and we will have a look
Re: phantom host
Posted: Sun May 05, 2013 4:55 pm
by KiwiBloke
Hi,
Thanks for that. I have emailed the snapshot to the address you provided.
Cheers,
KB.
Re: phantom host
Posted: Mon May 06, 2013 9:41 am
by slansing
Closing as a ticket has been opened for this.