]> granicus.if.org Git - icinga2/commitdiff
Add timeout argument for pop, spop, imap, simap commands
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 13:13:24 +0000 (15:13 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Thu, 15 Oct 2015 13:13:24 +0000 (15:13 +0200)
fixes #10219

doc/7-icinga-template-library.md
itl/command-plugins.conf

index 4c3973c96704b74b618398221de4418267ef982e..06a7b18d8b743828d1f486d8d67e60d79e8f8be9 100644 (file)
@@ -455,6 +455,7 @@ Name            | Description
 ----------------|--------------
 imap_address    | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
 imap_port       | **Optional.** The port that should be checked. Defaults to 143.
+imap_timeout    | **Optional.** The timeout in seconds.
 
 
 ## <a id="plugin-check-command-ldap"></a> ldap
@@ -647,6 +648,7 @@ Name            | Description
 ----------------|--------------
 pop_address     | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
 pop_port        | **Optional.** The port that should be checked. Defaults to 110.
+pop_timeout     | **Optional.** The timeout in seconds.
 
 
 ## <a id="plugin-check-command-processes"></a> procs
@@ -684,6 +686,7 @@ Name            | Description
 ----------------|--------------
 simap_address   | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
 simap_port      | **Optional.** The host's port.
+simap_timeout   | **Optional.** The timeout in seconds.
 
 
 ## <a id="plugin-check-command-smtp"></a> smtp
@@ -786,6 +789,7 @@ Name            | Description
 ----------------|--------------
 spop_address    | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
 spop_port       | **Optional.** The host's port.
+spop_timeout    | **Optional.** The timeout in seconds.
 
 
 ## <a id="plugin-check-command-ssh"></a> ssh
index 78fbe04dce28c343ee5ddcd19518409754bf61bb..22a64f5c0a590312594280b4825d8313e97dd236 100644 (file)
@@ -557,6 +557,7 @@ object CheckCommand "imap" {
        arguments = {
                "-H" = "$imap_address$"
                "-p" = "$imap_port$"
+               "-t" = "$imap_timeout$"
        }
 
        vars.imap_address = "$check_address$"
@@ -571,6 +572,7 @@ object CheckCommand "simap" {
        arguments = {
                "-H" = "$simap_address$"
                "-p" = "$simap_port$"
+               "-t" = "$simap_timeout$"
        }
 
        vars.simap_address = "$check_address$"
@@ -585,6 +587,7 @@ object CheckCommand "pop" {
        arguments = {
                "-H" = "$pop_address$"
                "-p" = "$pop_port$"
+               "-t" = "$pop_timeout$"
        }
 
        vars.pop_address = "$check_address$"
@@ -599,6 +602,7 @@ object CheckCommand "spop" {
        arguments = {
                "-H" = "$spop_address$"
                "-p" = "$spop_port$"
+               "-t" = "$spop_timeout$"
        }
 
        vars.spop_address = "$check_address$"