Page 1 of 3

CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 8:30 am
by brdr
Hi,

We are using XI 2014R2.6 (fresh install).

I followed several posts; worked with mweber; to try to resolve this issue to no avail.

After updating a service in CCM, hitting SAVE, then hitting Applying Configuration the 'Show Config Changes' indicates files successfully written. In this window i should see my service change but i don'.t I check the actual .cfg in the /usr/local/nagios/etc/services directory and changes are not there. However, when I go back into CCM->Services and check the service 'View Text Config' my new change is shown here.

I've done the following (followed this post -> http://support.nagios.com/forum/viewtop ... =6&t=30917)
1) Go to CCM --> Write config files --> Delete --> Write --> Verify. No errors.
2) cd /usr/local/nagiosxi/scripts; ./reconfigure_nagios.sh. No errors.
3) chage -l nagios. not expired.
4) Checked permissions with Admin/Monitoring Config/Check File Permissions. all good.

This issue can be intermittent, but almost always re-producable.For example, if i copy a service, then update it someway and save,apply it works. Now, when i go back to that service and alter it again then save,apply it doesn't work.

brdr

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 10:11 am
by lmiltchev
Run the following command to begin capturing log output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txt
Make a change to one of your services, save, and attempt to Apply Configuration from the web interface. After the browser has returned some output to the screen, press Ctrl+c to stop the log tail, and post the cmd.txt file that was generated in the "/tmp/" directory.

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 10:35 am
by brdr
plz see attached

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 11:21 am
by brdr
fyi.... seeing these errors in mysqld.log

150415 11:19:04 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150415 11:19:05 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
150415 11:19:05 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150415 11:19:05 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
150415 11:19:05 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150415 11:19:06 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_programstatus' is marked as crashed and should be repaired

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 11:43 am
by abrist
Well, I would suggest repairing the db before troubleshooting further:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 11:59 am
by brdr
Agreed. Ran repair script without issues. The mysqld.log looks clear right now.

I went back to test the service config issue and that has NOT changed - still an issue.

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 1:23 pm
by tgriep
Can you run the following and post back the results?

Code: Select all

uname -a
cat /etc/*release*

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 1:31 pm
by brdr
# cat /etc/*release*
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Red Hat Enterprise Linux Server release 6.6 (Santiago)
cpe:/o:redhat:enterprise_linux:6server:ga:server

# uname -a
Linux ourservername.com 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 4:31 pm
by lmiltchev
Run the following command to reset/correct permissions:

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms
then try to apply configuration again. Did this help?

Re: CCM Apply Configuration not picking up service change

Posted: Wed Apr 15, 2015 4:41 pm
by brdr
That did not help.