]> granicus.if.org Git - icinga2/commitdiff
Update documentation for the log_duration attribute
authorJens Schanz <mail@jensschanz.de>
Mon, 6 Jun 2016 14:28:21 +0000 (16:28 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 7 Jun 2016 06:26:31 +0000 (08:26 +0200)
fixes #11905

doc/6-object-types.md

index b259c98c44460d1bcccdcb1a4836f78a5c897a52..b0779e86588070bec7410652a69d527256fe597b 100644 (file)
@@ -411,6 +411,15 @@ Example:
     object Endpoint "icinga2b" {
       host = "192.168.5.46"
       port = 5665
+      log_duration = 1d
+    }
+
+Example (disable replay log):
+
+    object Endpoint "icinga2b" {
+      host = "192.168.5.46"
+      port = 5665
+      log_duration = 0
     }
 
 Configuration Attributes:
@@ -419,7 +428,7 @@ Configuration Attributes:
   ----------------|----------------
   host            |**Optional.** The hostname/IP address of the remote Icinga 2 instance.
   port            |**Optional.** The service name/port of the remote Icinga 2 instance. Defaults to `5665`.
-  log_duration    |**Optional.** Duration for keeping replay logs on connection loss. Defaults to `1d`.
+  log_duration    |**Optional.** Duration for keeping replay logs on connection loss. Defaults to `1d` (86400 seconds). Attribute is specified in seconds. If log_duration is set to 0, replaying logs is disabled. You could also specify the value in human readable format like `10m` for 10 minutes or `1h` for one hour.
 
 
 ## <a id="objecttype-eventcommand"></a> EventCommand