misleading apply configuration error
Posted: Thu Jun 28, 2012 9:37 am
i removed two hosts and associated services, and applied configuration on our nagios xi install, Nagios XI 2011R2.3 (removed services first, then hosts.)
i get the typical error :
Command submitted for processing...
Waiting for configuration verification..............................................................
Configurations failed to write to file.
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.
then when checking the specific error, i have:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Warning: Duplicate definition found for contact 'xi_default_contact' (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 922)
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 923.
Error processing object config files!
The thing is, there is *no* xi_default_contact in the /usr/local/nagios/etc/contacts.cfg at *all*
that contact is only defined in /usr/local/nagios/etc/static/xiobjects.cfg and it is defined once:
[root@nagiosxi etc]# pwd
/usr/local/nagios/etc
[root@nagiosxi etc]# grep xi_default_contact -R *
static/xiobjects.cfg: contact_name xi_default_contact
what is happening here?
currently we are unable to make any changes in nagios XI, and i have no starting point here to begin trouble shooting.
vmware image install, i686, 8cpu 8gig memory, mysql server has been rolled off to another vm CentOS release 6.2 (Final)
i get the typical error :
Command submitted for processing...
Waiting for configuration verification..............................................................
Configurations failed to write to file.
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.
then when checking the specific error, i have:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Warning: Duplicate definition found for contact 'xi_default_contact' (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 922)
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 923.
Error processing object config files!
The thing is, there is *no* xi_default_contact in the /usr/local/nagios/etc/contacts.cfg at *all*
that contact is only defined in /usr/local/nagios/etc/static/xiobjects.cfg and it is defined once:
[root@nagiosxi etc]# pwd
/usr/local/nagios/etc
[root@nagiosxi etc]# grep xi_default_contact -R *
static/xiobjects.cfg: contact_name xi_default_contact
what is happening here?
currently we are unable to make any changes in nagios XI, and i have no starting point here to begin trouble shooting.
vmware image install, i686, 8cpu 8gig memory, mysql server has been rolled off to another vm CentOS release 6.2 (Final)