Error on time periods after upgrade to nagiox xi 2014R1.0
Error on time periods after upgrade to nagiox xi 2014R1.0
Hello all, after upgrade from Nagios XI 2012 to Nagios XI 2014R1.0 I faced the error Error: The timeperiods '24x7' and '24x7' form or lead into a circular exclusion chain! when try to Apply Configuration. Have you already faced this issue before ?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error on time periods after upgrade to nagiox xi 2014R1.
Where does your configuration verification show this error occurring?:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgRe: Error on time periods after upgrade to nagiox xi 2014R1.
Follow the error message, it complains about Time Periods.
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 221
Complete output
Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 220)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 221.
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/timeperiods.cfg' on line 221
Complete output
Nagios Core 4.0.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-11-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 220)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 221.
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.
Re: Error on time periods after upgrade to nagiox xi 2014R1.
What do you have in '/usr/local/nagios/etc/timeperiods.cfg' on line 221? You need to fix the error in the CCM, run the Write Config Tool to make sure you don't have any more errors, then apply configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!