source: nagios/objects/timeperiods.cfg@ 357

Last change on this file since 357 was 202, checked in by Rick van der Zwet, 14 years ago

Nagios config files

File size: 3.1 KB
Line 
1###############################################################################
2# TIMEPERIODS.CFG - SAMPLE TIMEPERIOD DEFINITIONS
3#
4# Last Modified: 05-31-2007
5#
6# NOTES: This config file provides you with some example timeperiod definitions
7# that you can reference in host, service, contact, and dependency
8# definitions.
9#
10# You don't need to keep timeperiods in a separate file from your other
11# object definitions. This has been done just to make things easier to
12# understand.
13#
14###############################################################################
15
16
17
18###############################################################################
19###############################################################################
20#
21# TIME PERIODS
22#
23###############################################################################
24###############################################################################
25
26# This defines a timeperiod where all times are valid for checks,
27# notifications, etc. The classic "24x7" support nightmare. :-)
28define timeperiod{
29 timeperiod_name 24x7
30 alias 24 Hours A Day, 7 Days A Week
31 sunday 00:00-24:00
32 monday 00:00-24:00
33 tuesday 00:00-24:00
34 wednesday 00:00-24:00
35 thursday 00:00-24:00
36 friday 00:00-24:00
37 saturday 00:00-24:00
38 }
39
40
41# 'workhours' timeperiod definition
42define timeperiod{
43 timeperiod_name workhours
44 alias Normal Work Hours
45 monday 09:00-17:00
46 tuesday 09:00-17:00
47 wednesday 09:00-17:00
48 thursday 09:00-17:00
49 friday 09:00-17:00
50 }
51
52
53# 'none' timeperiod definition
54define timeperiod{
55 timeperiod_name none
56 alias No Time Is A Good Time
57 }
58
59
60# Some U.S. holidays
61# Note: The timeranges for each holiday are meant to *exclude* the holidays from being
62# treated as a valid time for notifications, etc. You probably don't want your pager
63# going off on New Year's. Although you're employer might... :-)
64define timeperiod{
65 name us-holidays
66 timeperiod_name us-holidays
67 alias U.S. Holidays
68
69 january 1 00:00-00:00 ; New Years
70 monday -1 may 00:00-00:00 ; Memorial Day (last Monday in May)
71 july 4 00:00-00:00 ; Independence Day
72 monday 1 september 00:00-00:00 ; Labor Day (first Monday in September)
73 thursday -1 november 00:00-00:00 ; Thanksgiving (last Thursday in November)
74 december 25 00:00-00:00 ; Christmas
75 }
76
77
78# This defines a modified "24x7" timeperiod that covers every day of the
79# year, except for U.S. holidays (defined in the timeperiod above).
80define timeperiod{
81 timeperiod_name 24x7_sans_holidays
82 alias 24x7 Sans Holidays
83
84 use us-holidays ; Get holiday exceptions from other timeperiod
85
86 sunday 00:00-24:00
87 monday 00:00-24:00
88 tuesday 00:00-24:00
89 wednesday 00:00-24:00
90 thursday 00:00-24:00
91 friday 00:00-24:00
92 saturday 00:00-24:00
93 }
94
Note: See TracBrowser for help on using the repository browser.