Error with config files.
Posted: Wed May 09, 2018 8:41 am
I am upgrading from Core to XI. Everything looks as it should but I am having 2 issues. I am trying to convince my company to move to XI but I need to have a POC for them to look at first and I'm stopped here.
Error: Could not add object property in file '/usr/local/nagios/etc/contacttemplates.cfg' on line 17.
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/static/hosttemplates.cfg', starting at line 1)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/static/templates.cfg', starting at line 52)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/static/templates.cfg', starting at line 163)
Warning: Duplicate definition found for contact 'generic-contact' (config file '/usr/local/nagios/etc/contacttemplates.cfg', starting on line 16)
Error: Could not add object property in file '/usr/local/nagios/etc/contacttemplates.cfg' on line 17.
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.
Error: Could not add object property in file '/usr/local/nagios/etc/contacttemplates.cfg' on line 17.
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/static/hosttemplates.cfg', starting at line 1)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/static/templates.cfg', starting at line 52)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/static/templates.cfg', starting at line 163)
Warning: Duplicate definition found for contact 'generic-contact' (config file '/usr/local/nagios/etc/contacttemplates.cfg', starting on line 16)
Error: Could not add object property in file '/usr/local/nagios/etc/contacttemplates.cfg' on line 17.
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.