Page 2 of 3
Re: CCM Apply Configuration not picking up service change
Posted: Wed Apr 15, 2015 7:13 pm
by Box293
Lets try this:
Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Quick Tools > Apply Configuration
Click the Apply Configuration button
Are the configs correctly updated?
Also, what is the output of:
Re: CCM Apply Configuration not picking up service change
Posted: Thu Apr 16, 2015 6:01 am
by brdr
Yes, the configs did successfully get written.
FYI...i then tried to update a service, hit SAVE, APPLY and the change was still NOT picked up.
-rw-rw-r-- 1 apache nagios 1035 Apr 10 10:17 cgi.cfg
-rw-rw-r-- 1 apache nagios 25455 Apr 16 05:51 commands.cfg
-rw-rw-r-- 1 apache nagios 1316 Apr 16 05:51 contactgroups.cfg
-rw-rw-r-- 1 apache nagios 4714 Apr 16 05:51 contacts.cfg
-rw-rw-r-- 1 apache nagios 2093 Apr 16 05:51 contacttemplates.cfg
-rw-rw-r-- 1 apache nagios 817 Apr 16 05:51 hostdependencies.cfg
-rw-rw-r-- 1 apache nagios 819 Apr 16 05:51 hostescalations.cfg
-rw-rw-r-- 1 apache nagios 837 Apr 16 05:51 hostextinfo.cfg
-rw-rw-r-- 1 apache nagios 2086 Apr 16 05:51 hostgroups.cfg
drwsrwsr-x 2 apache nagios 4096 Apr 16 05:51 hosts
-rw-rw-r-- 1 apache nagios 17888 Apr 16 05:51 hosttemplates.cfg
drwsrwsr-x 2 apache nagios 4096 Apr 14 15:02 import
-rwxrwxr-x 1 apache nagios 5599 Apr 15 17:11 nagios.cfg
-rw-rw-r-- 1 apache nagios 2229 Mar 25 13:28 ndo2db.cfg
-rw-rw-r-- 1 apache nagios 4827 Mar 25 13:28 ndomod.cfg
-rw-rw-r-- 1 apache nagios 7988 Mar 25 13:28 nrpe.cfg
-rw-rw-r-- 1 apache nagios 5345 Mar 25 13:28 nsca.cfg
drwxrwsr-x 4 apache nagios 4096 Apr 14 13:35 pnp
-rwxrwxr-x 1 apache nagios 369 Apr 14 08:07 resource.cfg
-rw-rw-r-- 1 apache nagios 1627 Mar 25 13:28 send_nsca.cfg
-rw-rw-r-- 1 apache nagios 823 Apr 16 05:51 servicedependencies.cfg
-rw-rw-r-- 1 apache nagios 825 Apr 16 05:51 serviceescalations.cfg
-rw-rw-r-- 1 apache nagios 843 Apr 16 05:51 serviceextinfo.cfg
-rw-rw-r-- 1 apache nagios 1454 Apr 16 05:51 servicegroups.cfg
drwsrwsr-x 2 apache nagios 4096 Apr 16 05:51 services
-rw-rw-r-- 1 apache nagios 26798 Apr 16 05:51 servicetemplates.cfg
drwsrwsr-x 2 apache nagios 4096 Apr 14 13:35 static
-rw-rw-r-- 1 apache nagios 4943 Apr 16 05:51 timeperiods.cfg
Re: CCM Apply Configuration not picking up service change
Posted: Thu Apr 16, 2015 6:50 am
by brdr
We have 2 XI 2014 R2.6 environments.
I noticed that on the XI instance with issue after hitting SAVE that it doesn't display in the right hand corner in RED:
Changes detected! Apply Configuration for new changes to take effect
Both XI instances display in the top middle screen that Database was successfully written to. Both XI instance use same Firefox browser. The other XI instance was an upgrade from 2.3 where the XI with issue was a fresh 2.6 install.
Hope that helps.
I will be out of office next week.
Thanks
Re: CCM Apply Configuration not picking up service change
Posted: Thu Apr 16, 2015 1:14 pm
by tgriep
Could you tail the Apache logs while you Apply the Configuration and post the output?
Run this while applying the configuration.
Code: Select all
tail -f /var/log/httpd/error_log
tail -f /var/log/httpd/access_log
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 8:26 am
by brdr
please find attached output for both
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 9:30 am
by scottwilkerson
We did find a bug in the CCM that would cause this issue, and was addressed in 2014R2.7
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 10:28 am
by brdr
I just upgraded from 2.6 to 2.7, however, I still have this issue.
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 12:30 pm
by abrist
Please try deleting the configs again, and then writing and verifying. You may have to remove the configs to reset the times on the files, etc.
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 1:47 pm
by brdr
I did update the configs per instructions, however, the issues still persists.
Re: CCM Apply Configuration not picking up service change
Posted: Mon Apr 27, 2015 2:04 pm
by lmiltchev
Can you run the following command:
Code: Select all
su nagios -c 'cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh' &> /tmp/reconfigure.txt
and post the "reconfigure.txt" that was generated in the "/tmp/" directory?