CCM Apply Configuration not picking up service change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

CCM Apply Configuration not picking up service change

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

Re: CCM Apply Configuration not picking up service change

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: CCM Apply Configuration not picking up service change

Post by brdr »

plz see attached
You do not have the required permissions to view the files attached to this post.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: CCM Apply Configuration not picking up service change

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CCM Apply Configuration not picking up service change

Post by abrist »

Well, I would suggest repairing the db before troubleshooting further:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
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.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: CCM Apply Configuration not picking up service change

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CCM Apply Configuration not picking up service change

Post by tgriep »

Can you run the following and post back the results?

Code: Select all

uname -a
cat /etc/*release*
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: CCM Apply Configuration not picking up service change

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

Re: CCM Apply Configuration not picking up service change

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: CCM Apply Configuration not picking up service change

Post by brdr »

That did not help.
Locked