I want the device to poll 24x 7 except 1100am to 1200pm,(11:00-12:00 ) 11pm to 1259 pm( 23:00-23:59) 1200am to 1 am (00:00-01:00).
I set this up using the core config wizard, with the timeperiod tool.
===================================
device config:
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-05-30 12:47:31
# 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 host {
host_name 380 SPB
use xiwizard_genericnetdevice_host
alias 380 SPB
address x.x.x.x
hostgroups Storage Devices
initial_state u
max_check_attempts 5
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 380 SPB
check_freshness 1
contacts nagiosadmin
contact_groups xxxxxxx
notification_interval 60
notification_period 24x7
icon_image emc1.png
statusmap_image emc1.png
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
===================================
Code: Select all
define timeperiod {
timeperiod_name exception 1
alias 1100 1200
name exclusion 1100 1200
tuesday 11:00-12:00
thursday 11:00-12:00
sunday 11:00-12:00
saturday 11:00-12:00
monday 11:00-12:00
friday 11:00-12:00
wednesday 11:40-12:00
}
define timeperiod {
timeperiod_name exclusion 2
alias 2300 2359
name exclusion 23:00-23:59
tuesday 23:00-23:59
thursday 23:00-23:59
sunday 23:00-23:59
saturday 23:00-23:59
monday 23:00-23:59
friday 23:00-23:59
wednesday 13:00-13:59
}
define timeperiod {
timeperiod_name exclusion 3
alias 0000 0100
name exclusion 0000 0100
tuesday 00:00-01:00
thursday 00:00-01:00
sunday 00:00-01:00
saturday 00:00-01:00
monday 00:00-01:00
friday 00:00-01:00
wednesday 00:00-01:00
}
define timeperiod {
timeperiod_name 380 SPB
alias do not poll during backups
exclude exception 1, SPA B exclusion 2,exclusion 3
tuesday 00:00-24:00
thursday 00:00-24:00
sunday 00:00-24:00
saturday 00:00-24:00
monday 00:00-24:00
friday 00:00-24:00
wednesday 00:00-24:00
}