Changes applied in CCM not reflected in config files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
crystal.then
Posts: 57
Joined: Mon Oct 27, 2014 12:05 am

Changes applied in CCM not reflected in config files

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Changes applied in CCM not reflected in config files

Post 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?

Code: Select all

ps -ef | grep "bin/nagios"
Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal.then
Posts: 57
Joined: Mon Oct 27, 2014 12:05 am

Re: Changes applied in CCM not reflected in config files

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Changes applied in CCM not reflected in config files

Post 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.
Former Nagios employee
crystal.then
Posts: 57
Joined: Mon Oct 27, 2014 12:05 am

Re: Changes applied in CCM not reflected in config files

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Changes applied in CCM not reflected in config files

Post 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.
Former Nagios employee
Locked