]> git.pld-linux.org Git - projects/nagios-config.git/blob - timeperiods.cfg
- old style templates.cfg for nagios 3.0
[projects/nagios-config.git] / timeperiods.cfg
1 ###############################################################################
2 # TIMEPERIODS.CFG
3 #
4 # $Id$
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 {
18         timeperiod_name         24x7
19         alias                           24 Hours A Day, 7 Days A Week
20
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
28 }
29
30 # 'workhours' timeperiod definition
31 define timeperiodo {
32         timeperiod_name         workhours
33         alias                           Normal Work Hours
34
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
40 }
41
42 # 'none' timeperiod definition
43 define timeperiod{
44         timeperiod_name                 none
45         alias                                   No Time Is A Good Time
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... :-)
52 define timeperiod{
53         name                                    us-holidays
54         timeperiod_name                 us-holidays
55         alias                                   U.S. Holidays
56
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
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 {
68         timeperiod_name                 24x7_sans_holidays
69         alias                                   24x7 Sans Holidays
70
71         ; Get holiday exceptions from other timeperiod
72         use                                             us-holidays
73
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
81 }
82
83 # vim:ts=4:sw=4:ft=nagios
This page took 0.294454 seconds and 4 git commands to generate.