[icinga-checkins] icinga.org: icinga2/feature/child-process-fd-leak-8900: Docs: Add more Timeperiod examples

git at icinga.org git at icinga.org
Tue Oct 4 08:27:58 CEST 2016


Module: icinga2
Branch: feature/child-process-fd-leak-8900
Commit: 00b27d316a51ba8bed187613c927ecf01bad7759
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=00b27d316a51ba8bed187613c927ecf01bad7759

Author: Nicole Lang <nicole.lang at netways.de>
Date:   Fri Sep 30 11:41:32 2016 +0200

Docs: Add more Timeperiod examples

fixes #12834

Signed-off-by: Michael Friedrich <michael.friedrich at netways.de>

---

 doc/8-advanced-topics.md |   32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/doc/8-advanced-topics.md b/doc/8-advanced-topics.md
index 45d1b4e..a123da3 100644
--- a/doc/8-advanced-topics.md
+++ b/doc/8-advanced-topics.md
@@ -196,8 +196,36 @@ create a new timeperiod named `workhours` defining a work day from
       }
     }
 
-Use the `period` attribute to assign time periods to
-`Notification` and `Dependency` objects:
+Furthermore if you wish to specify a notification period across midnight,
+you can define it the following way:
+
+    object Timeperiod "across-midnight" {
+      import "legacy-timeperiod"
+
+      display_name = "Nightly Notification"
+      ranges = {
+        "saturday" = "22:00-24:00"
+        "sunday" = "00:00-03:00"
+      }
+    }
+
+Below you can see another example for configuring timeperiods across several
+days, weeks or months. This can be useful when taking components offline
+for a distinct period of time.
+
+    object Timeperiod "standby" {
+      import "legacy-timeperiod"
+
+      display_name = "Standby"
+      ranges = {
+        "2016-09-30 - 2016-10-30" = "00:00-24:00"
+      }
+    }
+
+Please note that the spaces before and after the dash are mandatory.
+
+Once your time period is configured you can Use the `period` attribute
+to assign time periods to `Notification` and `Dependency` objects:
 
     object Notification "mail" {
       import "generic-notification"



More information about the icinga-checkins mailing list