From 8ccc4da942be7489f9ce750a9e7d0c4611d1c0a4 Mon Sep 17 00:00:00 2001 From: Patrick Huy Date: Fri, 11 Nov 2016 14:09:54 +0100 Subject: [PATCH] ITL: Add verbose parameter for http CheckCommand fixes #13433 Signed-off-by: Michael Friedrich --- doc/10-icinga-template-library.md | 1 + itl/command-plugins.conf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 477b71a55..67fdf4c05 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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. ### icmp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 766014798..cacabd118 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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" {