]>
Commit | Line | Data |
---|---|---|
988abb23 ER |
1 | ############################################################################### |
2 | # TIMEPERIODS.CFG | |
3 | # | |
2f0984c0 | 4 | # $Id$ |
988abb23 ER |
5 | ############################################################################### |
6 | ||
7 | ############################################################################### | |
8 | ############################################################################### | |
9 | # | |
10 | # TIME PERIODS | |
11 | # | |
12 | ############################################################################### | |
13 | ############################################################################### | |
14 | ||
15 | # This defines a timeperiod where all times are valid for checks, | |
16 | # notifications, etc. The classic "24x7" support nightmare. :-) | |
17 | define timeperiod { | |
9c0d6e90 ER |
18 | timeperiod_name 24x7 |
19 | alias 24 Hours A Day, 7 Days A Week | |
988abb23 | 20 | |
9c0d6e90 ER |
21 | monday 00:00-24:00 |
22 | tuesday 00:00-24:00 | |
23 | wednesday 00:00-24:00 | |
24 | thursday 00:00-24:00 | |
25 | friday 00:00-24:00 | |
26 | saturday 00:00-24:00 | |
27 | sunday 00:00-24:00 | |
988abb23 ER |
28 | } |
29 | ||
30 | # 'workhours' timeperiod definition | |
9c0d6e90 ER |
31 | define timeperiod { |
32 | timeperiod_name workhours | |
33 | alias Normal Work Hours | |
988abb23 | 34 | |
9c0d6e90 ER |
35 | monday 09:00-17:00 |
36 | tuesday 09:00-17:00 | |
37 | wednesday 09:00-17:00 | |
38 | thursday 09:00-17:00 | |
39 | friday 09:00-17:00 | |
988abb23 ER |
40 | } |
41 | ||
42 | # 'none' timeperiod definition | |
9c0d6e90 ER |
43 | define timeperiod { |
44 | timeperiod_name none | |
45 | alias No Time Is A Good Time | |
988abb23 ER |
46 | } |
47 | ||
48 | # Some U.S. holidays | |
49 | # Note: The timeranges for each holiday are meant to *exclude* the holidays from being | |
50 | # treated as a valid time for notifications, etc. You probably don't want your pager | |
51 | # going off on New Year's. Although you're employer might... :-) | |
9c0d6e90 ER |
52 | define timeperiod { |
53 | name us-holidays | |
54 | timeperiod_name us-holidays | |
55 | alias U.S. Holidays | |
988abb23 | 56 | |
9c0d6e90 ER |
57 | january 1 00:00-00:00 ; New Years |
58 | monday -1 may 00:00-00:00 ; Memorial Day (last Monday in May) | |
59 | july 4 00:00-00:00 ; Independence Day | |
60 | monday 1 september 00:00-00:00 ; Labor Day (first Monday in September) | |
61 | thursday -1 november 00:00-00:00 ; Thanksgiving (last Thursday in November) | |
62 | december 25 00:00-00:00 ; Christmas | |
988abb23 ER |
63 | } |
64 | ||
65 | # This defines a modified "24x7" timeperiod that covers every day of the | |
66 | # year, except for U.S. holidays (defined in the timeperiod above). | |
67 | define timeperiod { | |
9c0d6e90 ER |
68 | timeperiod_name 24x7_sans_holidays |
69 | alias 24x7 Sans Holidays | |
988abb23 ER |
70 | |
71 | ; Get holiday exceptions from other timeperiod | |
9c0d6e90 | 72 | use us-holidays |
988abb23 | 73 | |
9c0d6e90 ER |
74 | sunday 00:00-24:00 |
75 | monday 00:00-24:00 | |
76 | tuesday 00:00-24:00 | |
77 | wednesday 00:00-24:00 | |
78 | thursday 00:00-24:00 | |
79 | friday 00:00-24:00 | |
80 | saturday 00:00-24:00 | |
988abb23 ER |
81 | } |
82 | ||
63a7f40b | 83 | # vim:ft=nagios |