Page 1 of 1

Deleted Hosts still appear in Host Status Detail ...

Posted: Mon May 17, 2021 7:17 am
by PhilG
Hello:
I have upgraded to Nagios XI 5.8.3 yesterday, Sun. 5/16/2021.
I noted that my Infrastructure Team decommissioned 2 Hosts (with associated Services).
I deleted the Services via "CCM > Monitoring > Services", then Apply Configuration.
I deleted the Hosts via "CCM > Monitoring > Hosts", then Apply Configuration.
I notice that the Host Status Summary show 2 Hosts as Down, the Host Status displays both Hosts, and the Host Status Detail displays both Hosts.
However, in "CCM > Monitoring > Hosts", the Hosts are not found/listed/displayed, though.

How may I cleanup these Hosts?

Thank you.

Re: Deleted Hosts still appear in Host Status Detail ...

Posted: Mon May 17, 2021 12:24 pm
by dchurch
I've seen this issue before, especially when adding/removing hosts. Apply Config has some issues whereby it doesn't clobber some files in /usr/local/nagios/etc where it really should. This leads to deleted / deactivated hosts still being monitored.

As a workaround, instead of using Apply Config, if you go to to Config (top menu) -> Core Config Manager => Config File Management (left menu), then running Delete, Write, then Verify, and Restart. This is also tremendously helpful when diagnosing config problems because it will often reveal more problems with better error messages. (This is actually the process that the "Apply Config" button does under the hood.)

Re: Deleted Hosts still appear in Host Status Detail ...

Posted: Mon May 17, 2021 4:21 pm
by PhilG
Okay, will have to do this after a Change Management request and get approval. I can't do this on Production systems without going through the Change Management process.

You can lock this post. If I have any issues after this is completed, I'll create a new post.

Thanks!