summaryrefslogtreecommitdiffstats
path: root/config/new/objects/timeperiods.cfg
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
commitb74ea32070492c251943d69a09265463cc9866ed (patch)
tree080bd9c8eb0b53491e118bdfed29f7cd61126bfe /config/new/objects/timeperiods.cfg
downloadpdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.gz
pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.bz2
pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.tar.xz
pdvnagios-b74ea32070492c251943d69a09265463cc9866ed.zip
Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scriptsHEADmaster
Diffstat (limited to 'config/new/objects/timeperiods.cfg')
-rw-r--r--config/new/objects/timeperiods.cfg112
1 files changed, 112 insertions, 0 deletions
diff --git a/config/new/objects/timeperiods.cfg b/config/new/objects/timeperiods.cfg
new file mode 100644
index 0000000..42fb2bc
--- /dev/null
+++ b/config/new/objects/timeperiods.cfg
@@ -0,0 +1,112 @@
+###############################################################################
+# TIMEPERIODS.CFG - SAMPLE TIMEPERIOD DEFINITIONS
+#
+#
+# NOTES: This config file provides you with some example timeperiod definitions
+# that you can reference in host, service, contact, and dependency
+# definitions.
+#
+# You don't need to keep timeperiods in a separate file from your other
+# object definitions. This has been done just to make things easier to
+# understand.
+#
+###############################################################################
+
+
+
+###############################################################################
+#
+# TIMEPERIOD DEFINITIONS
+#
+###############################################################################
+
+# This defines a timeperiod where all times are valid for checks,
+# notifications, etc. The classic "24x7" support nightmare. :-)
+
+define timeperiod {
+
+ name 24x7
+ 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
+}
+
+
+
+# This defines a timeperiod that is normal workhours for
+# those of us monitoring networks and such in the U.S.
+
+define timeperiod {
+
+ name workhours
+ 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
+}
+
+
+
+# This defines the *perfect* check and notification
+# timeperiod
+
+define timeperiod {
+
+ name none
+ timeperiod_name none
+ alias No Time Is A Good Time
+}
+
+
+
+# Some U.S. holidays
+# Note: The timeranges for each holiday are meant to *exclude* the holidays from being
+# treated as a valid time for notifications, etc. You probably don't want your pager
+# going off on New Year's. Although your employer might... :-)
+
+define timeperiod {
+
+ name us-holidays
+ timeperiod_name us-holidays
+ alias U.S. Holidays
+
+ january 1 00:00-00:00 ; New Years
+ monday -1 may 00:00-00:00 ; Memorial Day (last Monday in May)
+ july 4 00:00-00:00 ; Independence Day
+ monday 1 september 00:00-00:00 ; Labor Day (first Monday in September)
+ thursday 4 november 00:00-00:00 ; Thanksgiving (4th Thursday in November)
+ december 25 00:00-00:00 ; Christmas
+}
+
+
+
+# This defines a modified "24x7" timeperiod that covers every day of the
+# year, except for U.S. holidays (defined in the timeperiod above).
+
+define timeperiod {
+
+ name 24x7_sans_holidays
+ timeperiod_name 24x7_sans_holidays
+ alias 24x7 Sans Holidays
+
+ use us-holidays ; Get holiday exceptions from other timeperiod
+
+ 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
+}