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
Applying Configuration Failure
-
bolson
Re: Applying Configuration Failure
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!
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
results
Total Warnings: 24
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Total Warnings: 24
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Applying Configuration Failure
Can you run the following and post the results
Also, start a running tail on the cmdsubsys.log, and redirect the output to a text file:
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.
Code: Select all
chage -l nagios
chage -l apache
sestatus
ls -la /usr/local/nagiosxi/scripts/nagiosql*Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/debug.txtRe: Applying Configuration Failure
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
lock it up and thank you
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Applying Configuration Failure
Glad to be of assistance!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