Page 2 of 2
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Tue Jun 04, 2013 1:48 pm
by klewia
Hi sreinhardt,
I am sorry, my last response was in reply to Abrist's requested action(s). - So, yep!
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Tue Jun 04, 2013 2:35 pm
by abrist
Could you post the contents of the file: /usr/local/nagios/etc/static/xiobjects.cfg
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Fri Jun 07, 2013 12:29 pm
by klewia
contents blow
Code: Select all
# XI OBJECTS - DO NOT MODIFY!
####################################################
# CONTACTS
####################################################
define contact{
contact_name xi_default_contact
email root@localhost
alias Default Contact
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
host_notification_period xi_timeperiod_none
service_notification_period xi_timeperiod_none
host_notification_options n
service_notification_options n
}
####################################################
# HOST GROUPS
####################################################
####################################################
# TIMEPERIODS
####################################################
#define timeperiod{
# timeperiod_name xi_timeperiod_24x7
# alias 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
# }
define timeperiod{
timeperiod_name xi_timeperiod_none
alias None
}
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Fri Jun 07, 2013 1:17 pm
by abrist
Alright, could you also post the contents of the file:
Code: Select all
/usr/local/nagios/etc/timeperiods.cfg
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Fri Jun 07, 2013 2:01 pm
by klewia
As requested - Thank you
Code: Select all
###############################################################################
#
# Timeperiod configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2013-01-15 16:41:05
# 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 {
alias Notification Times for Security Team
timeperiod_name Security Team_notification_times
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 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 nagiosadmin_notification_times
alias Notification Times for nagiosadmin
tuesday 00:00-24:00
monday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
saturday 00:00-24:00
sunday 00:00-24:00
friday 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
}
###############################################################################
#
# Timeperiod configuration file
#
# END OF FILE
#
###############################################################################
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Fri Jun 07, 2013 4:30 pm
by lmiltchev
Since you've already commented out the "xi_timeperiod_24x7" in the static, could you run once more the Write Config Tool, and post the output?
Re: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Tue Jun 11, 2013 12:56 pm
by klewia
Code: Select all
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Warning: Duplicate definition found for timeperiod 'xi_timeperiod_24x7' (config file '/usr/local/nagios/etc/timeperiods.cfg', starting on line 221)
Error: Could not add object property in file '/usr/local/nagios/etc/timeperiods.cfg' on line 222.
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: Proper Method to Remove a Host / 24x7 Timeperiod
Posted: Tue Jun 11, 2013 2:05 pm
by lmiltchev
Send us your latest configuration snapshot to
[email protected] and type "Re: Proper Method to Remove a Host / 24x7 Timeperiod" in the email's subject field.