Applying Configuration Failure - ReOpen
Applying Configuration Failure - ReOpen
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)
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
By any chance are you running out of disk space?
When you get the error can you run the following from the command line and apply the configuration while you do so
Then after you get the error attach the /tmp/cmdsubsys.log to this post
Code: Select all
df -hCode: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log > /tmp/cmdsubsys.logRe: Applying Configuration Failure - ReOpen
space is good, about 21GB available.
output is attached.
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
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
Can you post the following file so we can see more details
/usr/local/nagiosxi/scripts/nagiosql.export.monitoring
Again thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Applying Configuration Failure - ReOpen
I think it didn't get attachedblariv wrote:attached
Re: Applying Configuration Failure - ReOpen
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
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
then restart httpd
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.
lets edit /etc/php.ini and set
Code: Select all
max_execution_time = 300Code: Select all
service httpd restartOne 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.
Re: Applying Configuration Failure - ReOpen
that seems to have fixed it thank you!
I also have the new version installed and am in process of migrating.
please lock this.
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
Glad that was successful!