Error on time periods after upgrade to nagiox xi 2014R1.0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rramos
Posts: 2
Joined: Thu Mar 20, 2014 3:42 pm

Error on time periods after upgrade to nagiox xi 2014R1.0

Post by rramos »

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.

Post by slansing »

Where does your configuration verification show this error occurring?:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
rramos
Posts: 2
Joined: Thu Mar 20, 2014 3:42 pm

Re: Error on time periods after upgrade to nagiox xi 2014R1.

Post by rramos »

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error on time periods after upgrade to nagiox xi 2014R1.

Post by lmiltchev »

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!
Locked