Error with config files.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wbetson
Posts: 3
Joined: Wed May 09, 2018 8:28 am

Error with config files.

Post by wbetson »

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.
wbetson
Posts: 3
Joined: Wed May 09, 2018 8:28 am

Re: Error with config files.

Post by wbetson »

The only remaining error is the contactgroups issue.

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: Duplicate definition found for contactgroup 'admins' (config file '/usr/local/nagios/etc/contactgroups.cfg', starting on line 16)
Error: Could not add object property in file '/usr/local/nagios/etc/contactgroups.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.
wbetson
Posts: 3
Joined: Wed May 09, 2018 8:28 am

Re: Error with config files.

Post by wbetson »

Appears it is from a duplicate definition, but I have no idea where it's getting that from.


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: Duplicate definition found for contact 'acastner' (config file '/usr/local/nagios/etc/contacts.cfg', starting on line 16)
Error: Could not add object property in file '/usr/local/nagios/etc/contacts.cfg' on line 17.
Error processing object config files!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Error with config files.

Post by npolovenko »

Hello, @wbetson. Have you looked inside the /usr/local/nagios/etc/contacts.cfg file on line 17? Can you send me the contacts file in a personal message so that I could examine it?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked