Page 1 of 1
host deletion
Posted: Thu Aug 18, 2011 12:51 pm
by tgfde
I deleted a host successfully but still receiving notification that the host is down.
How is this possible?
Thanks.
Re: host deletion
Posted: Thu Aug 18, 2011 1:15 pm
by agriffin
What steps did you take to delete it? In Nagios XI your configuration is kept in two places, in an internal database and in the traditional Nagios Core configuration files for the monitoring engine. Deleting the configuration files is ineffective because they will be regenerated from the database. Deleting from the database is at least a two-step process, deleting and then applying configuration. If you go to Admin->Core Config Manager->Hosts, do you see any messages about being 'Out of Sync'?
Re: host deletion
Posted: Thu Aug 18, 2011 1:17 pm
by lmiltchev
It is possible that you have multiple instances of Nagios running on your machine. Please, check our Wiki page:
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
Use the Write Config Tool to see if you are going to get any config errors.
Did you delete the host and its services from the Nagios Core Config Manager? Can you still see this host's *.cfg file in "/usr/local/nagios/etc/hosts"?
Re: host deletion
Posted: Thu Aug 18, 2011 1:53 pm
by tgfde
Hi,
I do have multiple instance of nagios but only being monitored by one. I no longer see the host int he "host" config file.
Would restarting Nagios make it go away? I just don't like restarting Nagios in the middle of the day during work hours.
Thanks.
Re: host deletion
Posted: Thu Aug 18, 2011 2:08 pm
by lmiltchev
Give it a try later (after work hours) and let us know if this fixed your problem.
Re: host deletion
Posted: Thu Aug 25, 2011 10:23 am
by tgfde
It did not work.
I tried deleting a host from our Nagios test server and it worked. The only difference is that the agent was still on the network before removing the host from the check services and deleting it.
Unfortunately, I can't connect the host back to the network because it has been decommissioned. That said, how would I go about removing this host from Nagios.
Thanks.
Re: host deletion
Posted: Thu Aug 25, 2011 11:00 am
by nscott
tgdfe,
Can you go to Configure > Core Config Manager > Tools > Write Config Files and post the output of all four steps?
Re: host deletion
Posted: Fri Aug 26, 2011 9:00 am
by tgfde
It looks like after restarting the Nagios again (4th step) resolved the issue.
Thank you.
Re: host deletion
Posted: Fri Aug 26, 2011 9:56 am
by nscott
Hey, glad you got it working.