Applying Configuration Failure - ReOpen

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 - ReOpen

Post by blariv »

Hi,

I have to open this up again as it has not been resolved as I thought.

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.

I find now if I do a database repair then restart the nagios service this temporally fixes the issue.

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

Re: Applying Configuration Failure - ReOpen

Post by scottwilkerson »

By any chance are you running out of disk space?

Code: Select all

df -h
When you get the error can you run the following from the command line and apply the configuration while you do so

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log > /tmp/cmdsubsys.log
Then after you get the error attach the /tmp/cmdsubsys.log to this post
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 - ReOpen

Post by blariv »

space is good, about 21GB available.

output is attached.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration Failure - ReOpen

Post by scottwilkerson »

Ok, it is having problems writing the configuration files.

Can you post the following file so we can see more details
/usr/local/nagiosxi/scripts/nagiosql.export.monitoring

Again thanks
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 - ReOpen

Post by blariv »

attached
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration Failure - ReOpen

Post by scottwilkerson »

blariv wrote:attached
I think it didn't get attached
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 - ReOpen

Post by blariv »

sorry, now attached
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration Failure - ReOpen

Post by scottwilkerson »

Ok, based on this file, the applying of configuration is getting cutoff by the max_execution_time in /etc/php.ini

lets edit /etc/php.ini and set

Code: Select all

max_execution_time = 300
then restart httpd

Code: Select all

service httpd restart
and try to apply the config again.

One thing I'd like to point out is that in newer versions of Nagios XI the Apply config time is dramatically reduced, and instead of waiting 4 minutes it may be 20 seconds to complete

This is on top of hundreds of other improvements and security fixes. I would highly suggest working toward upgrading if at all possible.
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 - ReOpen

Post by blariv »

that seems to have fixed it thank you!

I also have the new version installed and am in process of migrating.

please lock this.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration Failure - ReOpen

Post by scottwilkerson »

Glad that was successful!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked