Problem when hit Apply Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Problem when hit Apply Configuration

Post by jolson »

Proper permissions for the script are as follows:

Code: Select all

-rwsr-xr-x. 1 root   nagios   1347 Feb 19 08:20 reset_config_perms.sh
To correct this, perform the following:

Code: Select all

chown root:nagios /usr/local/nagiosxi/scripts/reset_config_perms

Code: Select all

chmod 765 /usr/local/nagiosxi/scripts/reset_config_perms

Code: Select all

chmod u+s /usr/local/nagiosxi/scripts/reset_config_perms
Then execute the commands provided:

Code: Select all

sudo su nagios
cd /usr/local/nagiosxi/scripts
./reset_config_perms
Edit: command syntax mistake
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

[nagios@DOUAI scripts]$ ./reset_config_perms
SETUID ROOT OK
RESETTING PERMS
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Problem when hit Apply Configuration

Post by Box293 »

Has this fixed your problem?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

Sorry, put my services keeps "Not Applied" .
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:19 pm, edited 1 time in total.
paulol
Posts: 159
Joined: Wed Jul 02, 2014 11:39 am

Re: Problem when hit Apply Configuration

Post by paulol »

If i change the hosts it works. But when i change services it doesnt works.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem when hit Apply Configuration

Post by tgriep »

What service are you changing that isn't working and what are you changing in it?
When you apply the config, can you click on the Show Error link on the Apply configuration screen and post that here?
Also can you run the following command and post back the results.

Code: Select all

ll /usr/local/nagios/etc/services
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 »

What service are you changing that isn't working and what are you changing in it?
Every service that i change, doesnt change. i change service description, ARGS, everything but the nagios doesnt "apply".
When you apply the config, can you click on the Show Error link on the Apply configuration screen and post that here?
i dont receive any error. Look on Attached Image. Apply2.png
Also can you run the following command and post back the results.
Results attached. Services.txt
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 »

On the Nagiosql database he changes.

NAGIOSQL Database

select service_description from nagiosql.tbl_service where CONFIG_NAME = 'SAITAMA' and service_description like 'Sincronizacao%';
+---------------------------------+
| service_description |
+---------------------------------+
| Sincronizacao de Horarioo |
+---------------------------------+
1 row in set (0.01 sec)

On the Nagios database he doesnt change.

NAGIOS Database

select name2 from nagios_objects where name1 = 'SAITAMA' and name2 like 'Sincronizacao%';
+---------------------------------+
| name2 |
+---------------------------------+
| Sincronizacao de Horario |
+---------------------------------+
1 row in set (0.00 sec)
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 »

Let's try applying configuration one more time after the permissions have been reset. 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.

BTW, do you have any errors/crashed tables in the mysqld.log?

Code: Select all

tail -50 /var/log/mysqld.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 »

Files Attached.
You do not have the required permissions to view the files attached to this post.
Locked