host deletion

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

host deletion

Post by tgfde »

I deleted a host successfully but still receiving notification that the host is down.

How is this possible?

Thanks.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: host deletion

Post 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'?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: host deletion

Post 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"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: host deletion

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: host deletion

Post by lmiltchev »

Give it a try later (after work hours) and let us know if this fixed your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: host deletion

Post 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.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: host deletion

Post by nscott »

tgdfe,

Can you go to Configure > Core Config Manager > Tools > Write Config Files and post the output of all four steps?
Nicholas Scott
Former Nagios employee
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: host deletion

Post by tgfde »

It looks like after restarting the Nagios again (4th step) resolved the issue.

Thank you.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: host deletion

Post by nscott »

Hey, glad you got it working.
Nicholas Scott
Former Nagios employee
Locked