Page 1 of 1
Monitoring engine is not starting
Posted: Thu Jul 03, 2014 4:59 am
by amanasteel
Hi,
I recently upgraded our Nagiosxi to 2012r2.9 and then as a part of my routine job I changed some service settings etc using CCM. Since then, the Nagios engine is failing to start and it throws following error:
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...
I opened the timeperiod.cfg file via ssh but the total number of lines are less than 100. I am clueless as to what might be the issue. Please help.
Rgrds,
Aijaz
Re: Monitoring engine is not starting
Posted: Thu Jul 03, 2014 10:59 am
by sreinhardt
Most likely the apply config repopulated the invalid timeperiods.cfg with the original working one, as it should. Please got to CCM->Tools->Write Config Files, Write the configs out, then post the timeperiods.cfg please.
Re: Monitoring engine is not starting
Posted: Sat Jul 05, 2014 11:04 pm
by amanasteel
Hi,
Thank you for the response, please see the timeperiods.cfg file below:
Code: Select all
###############################################################################
#
# Timeperiod configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2014-07-06 07:52:33
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define timeperiod {
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
define timeperiod {
timeperiod_name 24x7_sans_holidays
alias 24x7 Sans Holidays
use us-holidays
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
define timeperiod {
timeperiod_name aijaz_notification_times
alias Notification Times for aijaz
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Aqueel_notification_times
alias Notification Times for Aqueel
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name arvind_notification_times
alias Notification Times for Arvind
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Dani_notification_times
alias Notification Times for Dani
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name haider_notification_times
alias Notification Times for haider
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Julius_notification_times
alias Notification Times for Julius
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name kala_notification_times
alias Notification Times for kala
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Mustafa_notification_times
alias Notification Times for Mustafa
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Nabeel_notification_times
alias Notification Times for Nabeel
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name none
alias No Time Is A Good Time
}
define timeperiod {
timeperiod_name Pierre_notification_times
alias Notification Times for Pierre
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Pradeep_notification_times
alias Notification Times for Pradeep
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name Sarath_notification_times
alias Notification Times for Sarath
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
}
define timeperiod {
timeperiod_name us-holidays
alias U.S. Holidays
name us-holidays
january 1 00:00-00:00
monday 1 september 00:00-00:00
july 4 00:00-00:00
thursday -1 november 00:00-00:00
december 25 00:00-00:00
}
define timeperiod {
timeperiod_name workhours
alias Normal Work Hours
monday 09:00-17:00
tuesday 09:00-17:00
wednesday 09:00-17:00
thursday 09:00-17:00
friday 09:00-17:00
}
define timeperiod {
timeperiod_name workhours IT
alias Normal Work Hours For IT
name Thinstuff XP/VS Server for Windows
wednesday 08:00-17:00
tuesday 08:00-17:00
thursday 08:00-17:00
sunday 08:00-17:00
monday 08:00-17:00
}
define timeperiod {
timeperiod_name xi_timeperiod_24x7
alias 24x7
name xi_timeperiod_24x7
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
###############################################################################
#
# Timeperiod configuration file
#
# END OF FILE
#
###############################################################################
Re: Monitoring engine is not starting
Posted: Sun Jul 06, 2014 11:15 pm
by amanasteel
Hi,
I was able to sort out the issue because after I "wrote the config" to physical files i was able to see line no. 221 and I could fix the Issue.
Thank you and please close this case.
Rgrds,
Aijaz