Host missing from CCM.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Host missing from CCM.

Post by vmesquita »

I have a host that doesn't show up on the Core Config Manager, either on hosts or services. I mean, I can't locate the entry for the host or the services there. But I can find it in the normal monitoring interface. I can find it at /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services, but of course, deleting the files doesn't help, it is recreated from the database. How can I fix this?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Host missing from CCM.

Post by abrist »

These are commonly referred to as "ghost configs". The normal course of action is to remove the old files from the /usr/local/nagios/etc/ directories as you have tried. The reason the files are reappearing is due to other problems in your configuration as a previous config snapshot is being rewritten to disk when "apply configuration" is run. The proper procedure in this instance is to do the following:

1. Remove the old files from /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services.
2. Write and verify the files - go to Configure --> Core Configuration Manager --> Tools --> Write Config Files --> Click Write and then Verify. *Do not* click Restart nor Apply Configuration just yet.
3. You *should* receive some errors. Resolve these errors in the CCM.
4. Repeat steps 2 & 3 until all errors are resolved. Only then should you apply configuration or restart the nagios service.

This is usually caused by an improper shutdown of nagios or an interruption of the nagios process during an apply configuration.
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.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: Host missing from CCM.

Post by vmesquita »

The instructions fixed the issue. Thanks.
Locked