Applying Configuration Failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Applying Configuration Failure

Post 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
bolson

Re: Applying Configuration Failure

Post 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!
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Applying Configuration Failure

Post by blariv »

results

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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Applying Configuration Failure

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration Failure

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked