diff options
author | Julien Dessaux | 2017-09-19 17:55:40 +0200 |
---|---|---|
committer | Julien Dessaux | 2017-09-21 16:21:41 +0200 |
commit | 142820653f8d6a3fffacc9acde09ca74e22892bf (patch) | |
tree | 3518ffe3ca11318cd70b88c6ab8ff26b79ea45f1 /templates/nagios/conf.d/timeperiods.cfg | |
parent | Fixed docker permissions for user julien (diff) | |
download | masterfiles-142820653f8d6a3fffacc9acde09ca74e22892bf.tar.gz masterfiles-142820653f8d6a3fffacc9acde09ca74e22892bf.tar.bz2 masterfiles-142820653f8d6a3fffacc9acde09ca74e22892bf.zip |
Finished adding nagios policy along with simple nginx policy
Diffstat (limited to 'templates/nagios/conf.d/timeperiods.cfg')
-rw-r--r-- | templates/nagios/conf.d/timeperiods.cfg | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/nagios/conf.d/timeperiods.cfg b/templates/nagios/conf.d/timeperiods.cfg new file mode 100644 index 0000000..be21dcf --- /dev/null +++ b/templates/nagios/conf.d/timeperiods.cfg @@ -0,0 +1,54 @@ +define timeperiod { + 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 +} + +define timeperiod { + timeperiod_name workhours + alias Normal Work Hours + monday 09:00-18:00 + tuesday 09:00-18:00 + wednesday 09:00-18:00 + thursday 09:00-18:00 + friday 09:00-18:00 +} + +define timeperiod { + timeperiod_name none + alias No Time Is A Good Time +} + +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 +} + +define timeperiod { + 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 +} |