Page 1 of 1

NagiosXI host remove fail

Posted: Mon May 26, 2014 9:13 am
by 53chen4gios
Hello everyone,

I recently configured NagiosXI in my company to monitor the whole network, I added a VOiP switch in the host database by using the FQDN of the host but I realized later that the switch has no FQDN configured on the network ...

So I needed to use IP Address to add it in NagiosXI because the server cannot resolve the FQDN.

I decided to delete it from NagiosXI DB but it's still in the Views tab and it still sends notifications and the status down. I don't find how to delete the host from the views completely.

If needed I can send screenshots.

Regards,

53che :)

Re: NagiosXI host remove fail

Posted: Tue May 27, 2014 9:21 am
by tmcdonald
53chen4gios wrote:I decided to delete it from NagiosXI DB
What exactly do you mean by this? What steps did you take to remove it?

Re: NagiosXI host remove fail

Posted: Tue May 27, 2014 10:14 am
by scottwilkerson
53chen4gios wrote:Hello everyone,

I recently configured NagiosXI in my company to monitor the whole network, I added a VOiP switch in the host database by using the FQDN of the host but I realized later that the switch has no FQDN configured on the network ...

So I needed to use IP Address to add it in NagiosXI because the server cannot resolve the FQDN.

I decided to delete it from NagiosXI DB but it's still in the Views tab and it still sends notifications and the status down. I don't find how to delete the host from the views completely.

If needed I can send screenshots.

Regards,

53che :)

Did you apply configuration after deleting the host/services? Did it succeed?

Re: NagiosXI host remove fail

Posted: Fri May 30, 2014 2:34 am
by 53chen4gios
First I deleted services regarding these two hosts and then I deleted the hosts in the core configuration manager ! I applied configuration it worked. But these two hosts are still present in the hosts view.

Re: NagiosXI host remove fail

Posted: Fri May 30, 2014 10:44 am
by abrist
Do their configs still exist?

Code: Select all

ls /usr/local/nagios/etc/hosts/ | grep "<hostname>"
(Change <hostname> to one of the hosts actual names)

Re: NagiosXI host remove fail

Posted: Mon Jun 02, 2014 1:39 am
by 53chen4gios
Yes the .cfg file is still present !

Do I have to delete it to see it completely disappeared from Nagios XI views !?

Thank your for your Help Abrist and Scott Wilkerson from NagiosXI support team ! :D

Re: NagiosXI host remove fail

Posted: Mon Jun 02, 2014 9:56 am
by abrist
If the host has been deleted from the ccm, you may need to remove the cfg file as it is now orphaned/a ghost. If it returns to disk after removal, the apply config is most likely failing and restoring a previous snapshot that includes the file.

Re: NagiosXI host remove fail

Posted: Wed Jun 04, 2014 2:03 am
by 53chen4gios
Indeed the cfg file acted as a ghost. After removal and configuration applied the host doesn't appear anymore !

Thank You Abrist. :)

Regards.