Page 1 of 1
Changes applied in CCM not reflected in config files
Posted: Thu Dec 04, 2014 10:18 pm
by crystal.then
Hello,
We are running Nagios XI 2014R2.0.
I am trying to modify configurations for hosts and services through the CCM (e.g.: change contacts, thresholds for checks, etc). When I click "Apply Configuration", it all appears to go through successfully:
Applying Configuration
(green tick) Command submitted for processing...
(green tick) Waiting for configuration verification......
(green tick) Configuration applied successfully.
Success! Nagios Core was restarted with an updated configuration.
The settings are updated in the CCM GUI, however changes are not reflected in the config files, nor in the way nagios behaves (old contacts being emailed, etc). I have already tried resetting permissions (reset_config_perms), this hasn't worked. In any case, the problem appears to be intermittent.
Any ideas?
Re: Changes applied in CCM not reflected in config files
Posted: Fri Dec 05, 2014 5:01 pm
by lmiltchev
The settings are updated in the CCM GUI, however changes are not reflected in the config files
Have you compared the "problem" configs? The one that you see in the CCM is what you have in the database (CCM->Hosts/Services->View Text Config). You can compare this to the actual config in "/usr/local/nagios/etc/hosts/" or "/usr/local/nagios/etc/services/".
Do you have any "ghost" hosts/services? You can try deleting the configs and rewriting them via the Write Config Tool. (CCM->Tools->Write Conifg Files->Delete->Write->Verify->Apply Configuration).
Do you have multiple nagios processes running?
Re: Changes applied in CCM not reflected in config files
Posted: Sun Dec 07, 2014 5:29 pm
by crystal.then
Hi lmiltchev, thanks for the reply.
The database configs do not match up to the actual configs after a change. Deleting and then rewriting the configs does fix the problem - that's our current workaround.
We do have multiple nagios processes running, as far as I can tell there's only one main one. Here's the output from ps -ef:
Code: Select all
nagios 27170 1 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 27172 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27173 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27174 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27175 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27176 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27177 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27178 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27179 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27180 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27182 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27183 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27184 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 27229 27170 0 09:06 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 27946 55589 0 09:07 pts/3 00:00:00 grep bin/nagios
Re: Changes applied in CCM not reflected in config files
Posted: Mon Dec 08, 2014 5:35 pm
by tmcdonald
Go back to the Configure -> Tools -> Write Config Files, then do a Delete, then a Write and send the output in a text file, then do a Verify and send those results as well. Then do a restart, no output needed. I want to see why it thinks the configs are writing properly.
Re: Changes applied in CCM not reflected in config files
Posted: Tue Dec 09, 2014 9:51 pm
by crystal.then
Hello,
For some reason changes in the CCM are now applying just fine... I will post again if the problem resurfaces. Thanks for the help.
On a slightly related note, we are using a paid for version of Nagios XI - how do I gain access to the customer forum?
Re: Changes applied in CCM not reflected in config files
Posted: Wed Dec 10, 2014 10:34 am
by tmcdonald
crystal.then wrote:On a slightly related note, we are using a paid for version of Nagios XI - how do I gain access to the customer forum?
Email
[email protected] with your customer ID and the username you want added, and they will take care of it for you.