Host missing from CCM.
Host missing from CCM.
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.
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.
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.
"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.
Re: Host missing from CCM.
The instructions fixed the issue. Thanks.