Page 1 of 1
Applying Configuration Failure
Posted: Mon Aug 21, 2017 8:15 am
by blariv
Hi,
I have a strange issue. whenever we apply the config it will fail, however when you check the config snapshots it does not show the one you just ran w/ the error.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Nagios XI Version : 2012R2.7
nagiosxi.hasbro.com 2.6.32-573.26.1.el6.x86_64 x86_64
CentOS release 6.7 (Final)
Thanks,
Brian
Re: Applying Configuration Failure
Posted: Mon Aug 21, 2017 10:31 am
by bolson
Hello blariv,
Please run the following from the command line of your Nagios Core server and post the result:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Thank you!
Re: Applying Configuration Failure
Posted: Tue Aug 22, 2017 6:32 am
by blariv
results
Total Warnings: 24
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: Applying Configuration Failure
Posted: Tue Aug 22, 2017 10:45 am
by scottwilkerson
Can you run the following and post the results
Code: Select all
chage -l nagios
chage -l apache
sestatus
ls -la /usr/local/nagiosxi/scripts/nagiosql*
Also, start a running tail on the cmdsubsys.log, and redirect the output to a text file:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/debug.txt
While the tail is running, apply configuration in the web UI. When this is done (you see an error in the web UI), go back to the terminal, and stop the tail by pressing "Ctrl + c". Next, post the "debug.txt" file that was generated in the "/tmp" directory.
Re: Applying Configuration Failure
Posted: Tue Aug 22, 2017 11:27 am
by blariv
well you wont believe it, its working fine now. I had just run the write config files and then the apply config worked.
lock it up and thank you
Re: Applying Configuration Failure
Posted: Tue Aug 22, 2017 11:29 am
by scottwilkerson
blariv wrote:well you wont believe it, its working fine now. I had just run the write config files and then the apply config worked.
lock it up and thank you
Glad to be of assistance!