Page 1 of 1

Host missing from CCM.

Posted: Tue Aug 27, 2013 10:35 am
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?

Re: Host missing from CCM.

Posted: Tue Aug 27, 2013 11:19 am
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.

Re: Host missing from CCM.

Posted: Tue Aug 27, 2013 11:51 am
by vmesquita
The instructions fixed the issue. Thanks.