Page 2 of 3

Re: Problem when hit Apply Configuration

Posted: Thu Mar 19, 2015 4:33 pm
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

Re: Problem when hit Apply Configuration

Posted: Thu Mar 19, 2015 4:51 pm
by paulol
[nagios@DOUAI scripts]$ ./reset_config_perms
SETUID ROOT OK
RESETTING PERMS

Re: Problem when hit Apply Configuration

Posted: Thu Mar 19, 2015 5:34 pm
by Box293
Has this fixed your problem?

Re: Problem when hit Apply Configuration

Posted: Thu Mar 19, 2015 6:00 pm
by paulol
Sorry, put my services keeps "Not Applied" .

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 9:03 am
by paulol
If i change the hosts it works. But when i change services it doesnt works.

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 12:29 pm
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

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 2:22 pm
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

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 2:32 pm
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)

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 2:43 pm
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

Re: Problem when hit Apply Configuration

Posted: Fri Mar 20, 2015 3:13 pm
by paulol
Files Attached.