Page 2 of 2

Re: Configuration verification fails - contacts.cfg

Posted: Tue Jan 12, 2016 7:31 am
by Sakshi Madan
Hello Team,

I have installed Nagios 4.x with NagiosQL and i am getting error while check the nagios configuration files.
I am new to Nagios. Can you help me to resolve the issues.

Error:

Warning: Duplicate definition found for timeperiod '24x7' (config file '/usr/local/nagios/nagiosql/timeperiods.cfg', starting on line 14)
Error: Could not add object property in file '/usr/local/nagios/nagiosql/timeperiods.cfg' on line 15.

Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for timeperiod '24x7' (config file '/usr/local/nagios/nagiosql/timeperiods.cfg', starting on line 14)
Error: Could not add object property in file '/usr/local/nagios/nagiosql/timeperiods.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.