NagiosXI host remove fail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
53chen4gios
Posts: 4
Joined: Thu Apr 17, 2014 8:00 am

NagiosXI host remove fail

Post 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 :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI host remove fail

Post 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?
Last edited by scottwilkerson on Tue May 27, 2014 10:13 am, edited 1 time in total.
Reason: spelling
Former Nagios employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NagiosXI host remove fail

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
53chen4gios
Posts: 4
Joined: Thu Apr 17, 2014 8:00 am

Re: NagiosXI host remove fail

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosXI host remove fail

Post 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)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
53chen4gios
Posts: 4
Joined: Thu Apr 17, 2014 8:00 am

Re: NagiosXI host remove fail

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosXI host remove fail

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
53chen4gios
Posts: 4
Joined: Thu Apr 17, 2014 8:00 am

Re: NagiosXI host remove fail

Post 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.
Locked