Problem when hit Apply Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Problem when hit Apply Configuration

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

Re: Problem when hit Apply Configuration

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

Output Attached.
You do not have the required permissions to view the files attached to this post.
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

This problem happens only when i change any service. If i add or delete it works.
You do not have the required permissions to view the files attached to this post.
Last edited by paulol on Fri Mar 20, 2015 3:18 pm, edited 2 times in total.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem when hit Apply Configuration

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

No, Im not using a proxy.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem when hit Apply Configuration

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

Sudoers Attached.
You do not have the required permissions to view the files attached to this post.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Problem when hit Apply Configuration

Post 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
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

Attached. The user Nagios doesnt have permission to exec this sh.
You do not have the required permissions to view the files attached to this post.
Locked