Duplicate entries in nagiosxi
Posted: Mon Nov 08, 2010 7:12 am
Hi,
I have an issue where config files were imported into a new install of XI, the mysql databases were dropped and the tables and sequences in postress were dropped I then ran the installer scripts that delt with populating the databases but I still get the messages below about duplicate objects> How can I resolve these issues .
Nagios Core 3.2.2
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-01-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Warning: Duplicate definition found for command 'check-host-alive' (config file '/usr/local/nagios/etc/commands.cfg', starting on line 14)
Error: Could not add object property in file '/usr/local/nagios/etc/commands.cfg' on line 15.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Regards
Dave
I have an issue where config files were imported into a new install of XI, the mysql databases were dropped and the tables and sequences in postress were dropped I then ran the installer scripts that delt with populating the databases but I still get the messages below about duplicate objects> How can I resolve these issues .
Nagios Core 3.2.2
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 09-01-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Warning: Duplicate definition found for command 'check-host-alive' (config file '/usr/local/nagios/etc/commands.cfg', starting on line 14)
Error: Could not add object property in file '/usr/local/nagios/etc/commands.cfg' on line 15.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Regards
Dave