All of the sudden, any time I try to write changes to Nagios, it says:
Warning: configuration file is out of date!
From there, it won't apply any changes, and is very frustrating. It had been working wonderfully for a while.
Any help would be appreciated.
Configuration FIle is out of Date!
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Configuration FIle is out of Date!
First, likely unrelated, but hey: Is the time/date correct on the server's clock?
Second: Is there anything interesting in your logs that might show what the first thing to fail was?
Second: Is there anything interesting in your logs that might show what the first thing to fail was?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Configuration FIle is out of Date!
What happens when you follow these steps?:
- Login to Core Configuration Manager
Click Tools - Write Config Files
Click the Go button next to Write monitoring data
This should succeed or fail, either way it tells you on the screen the results
Try the other Go buttons
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Configuration FIle is out of Date!
Here's what it says for the files... I'm not sure what would have changed, or how to correct that.
Write host configurations ...
Configuration file successfully written!
Write service configurations ...
Configuration file successfully written!
Write hostgroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicegroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write hosttemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicetemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write host configurations ...
Configuration file successfully written!
Write service configurations ...
Configuration file successfully written!
Write hostgroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicegroups.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write hosttemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Write servicetemplates.cfg ...
Cannot open/overwrite the configuration file (check the permissions)!
Re: Configuration FIle is out of Date!
turns out I did know what to do. I ran the following command:
chown apache.nagios /usr/local/nagios/etc/*.cfg
then restarted the httpd service and all is good again...
chown apache.nagios /usr/local/nagios/etc/*.cfg
then restarted the httpd service and all is good again...