Page 1 of 1

Configuration FIle is out of Date!

Posted: Wed Apr 21, 2010 1:13 pm
by airserv
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.

Re: Configuration FIle is out of Date!

Posted: Wed Apr 21, 2010 2:40 pm
by tonyyarusso
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?

Re: Configuration FIle is out of Date!

Posted: Thu Apr 22, 2010 1:49 am
by Box293
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
Post the results here, this should provide some more information.

Re: Configuration FIle is out of Date!

Posted: Thu Apr 22, 2010 7:07 am
by airserv
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)!

Re: Configuration FIle is out of Date!

Posted: Thu Apr 22, 2010 7:11 am
by airserv
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...