Page 1 of 1
Apply Configuration
Posted: Mon Dec 14, 2009 9:33 am
by joaovdn
In nagios core, in nagiosxi interface when i create a new host group and Apply Configuration(ends successfully) the nagiosxi apparently don't white in nagios/etc.
I can see it, and when i go to host group config again he say that 'Warning: configuration file is out of date! ' again!
In nagiosxi snapshot the hostgroup file is the same. but have a new hostgroup file with extension .cfg~ that is hight one but seems not replace the old.
why this is happening?
ty
Re: Apply Configuration
Posted: Wed Dec 16, 2009 9:00 am
by egalstad
Did you edit any of the config files manually? If so, the file permissions may have gotten whacked and caused the database export to fail. The tilde extension on config file seems to indicate this might be the case.
You can do a manual database export and check for errors by following these steps:
1. Enter the Nagios Core Configuration Manager (NagiosQL)
2. Click the following menu item on the left:
Tools -> Write Config Files
3. Click the "Go" buttons for "Write monitoring data" and "Write additional data". Watch for any errors messages before you continue to the next item.
If there are problems writing to the hostgroups file, NagiosQL will complain about permissions.
Re: Apply Configuration
Posted: Wed Dec 16, 2009 12:08 pm
by joaovdn
Thanks this works fine.
On the /usr/local/nagios/libexec/
than:
chown root:root *
chmod 4755 *
works fine!
Re: Apply Configuration
Posted: Wed Dec 16, 2009 10:03 pm
by egalstad
Great! Glad to hear it.

Re: Apply Configuration
Posted: Fri Feb 19, 2010 6:43 am
by Box293
I had a similar problem with all the .cfg files in /usr/local/nagios/etc
I fixed the problem by doing:
chown root:root /usr/local/nagios/etc/*.cfg
chmod o+w /usr/local/nagios/etc/*.cfg
Not sure why this happened, I don't normally play with things like file permissions.