]> granicus.if.org Git - icinga2/commitdiff
ITL: Add verbose parameter for http CheckCommand
authorPatrick Huy <frz@frz.cc>
Fri, 11 Nov 2016 13:09:54 +0000 (14:09 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 6 Dec 2016 16:58:35 +0000 (17:58 +0100)
fixes #13433

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
doc/10-icinga-template-library.md
itl/command-plugins.conf

index 477b71a55c014ab60bb04aace60224147199ff07..67fdf4c05bb4f8ef61093b65353df74195579eab 100644 (file)
@@ -601,6 +601,7 @@ http_pagesize                    | **Optional.** Minimum page size required:Maxi
 http_timeout                     | **Optional.** Seconds before connection times out.
 http_ipv4                        | **Optional.** Use IPv4 connection. Defaults to false.
 http_ipv6                        | **Optional.** Use IPv6 connection. Defaults to false.
+http_verbose                    | **Optional.** Show details for command-line debugging. Defaults to false.
 
 
 ### <a id="plugin-check-command-icmp"></a> icmp
index 766014798e1608b9069affbe25ee9cecf1b72041..cacabd11806b6e798679f476c5521ac4554e4096 100644 (file)
@@ -455,6 +455,10 @@ object CheckCommand "http" {
                        set_if = "$http_ipv6$"
                        description = "Use IPv6 connection"
                }
+               "-v" = {
+                       set_if = "$http_verbose$"
+                       description = "Show details for command-line debugging"
+               }
        }
 
        vars.http_address = "$check_address$"
@@ -464,6 +468,7 @@ object CheckCommand "http" {
        vars.http_invertregex = false
        vars.check_ipv4 = "$http_ipv4$"
        vars.check_ipv6 = "$http_ipv6$"
+       vars.http_verbose = false
 }
 
 object CheckCommand "ftp" {