Page 1 of 3
Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 1:40 pm
by paulol
Some of my services in the Configure view are showing in red, saying "not applied, Apply Configuration for changes to take effect".
I hit Apply Configuration, get an OK result (green exclamation marks, saying my config is good and Nagios has been restarted), However, when I go into the Configure view for services, all of them are still showing in red and saying "not applied" and when i go to Home and search the service that i changed, he didnt change anything. The only thing to make this Apply Configuration works is going to --> Configure --> CCM --> Write Config Files --> Click "Delete" --> click "Write". If all looks good, Apply configuration. Then my services are all "applied".
Nagios XI 2014R2.6
Mysql Remote Server
CentOS 6.6
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 1:56 pm
by tgriep
Can you run the following and post the results back?
Code: Select all
cd /usr/local/nagiosxi/scripts
su nagios
./reconfigure_nagios.sh
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 2:02 pm
by paulol
Output Attached.
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 2:32 pm
by paulol
This problem happens only when i change any service. If i add or delete it works.
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 2:33 pm
by lmiltchev
Are you using a proxy?
Run the following command to begin capturing log output:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
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.
Also, run the following commands and show us the output:
Code: Select all
getenforce
chage nagios -l
grep "NAGIOSXI=nagios" /etc/sudoers
grep -R "NAGIOSXI=nagios" /etc/sudoers.d/
ll /usr/local/nagiosxi/scripts/nagiosql*
tail -50 /var/log/httpd/error_log
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 2:44 pm
by paulol
No, Im not using a proxy.
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 3:00 pm
by lmiltchev
This seems to be a permissions issue. You have many line as the one below:
/bin/chmod: changing permissions of `/usr/local/nagios/etc/hosts/SW2_TMKT_BSA.cfg': Operation not permitted
Can you show us the whole "/etc/sudoers" file?
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 3:38 pm
by paulol
Sudoers Attached.
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 3:54 pm
by cmerchant
Could you run the following and show us the results:
Code: Select all
sudo su nagios
cd /usr/local/nagiosxi/scripts
./reset_config_perms
Re: Problem when hit Apply Configuration
Posted: Thu Mar 19, 2015 4:16 pm
by paulol
Attached. The user Nagios doesnt have permission to exec this sh.