From 5ace3462ae2eb30411852fdd497ba9faeebbacc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1lm=C3=A1n=20Szalai=20-=20KAMI?= Date: Wed, 11 Jan 2017 09:41:42 +0100 Subject: [PATCH] Add wrap output in HTML link parameter for http CheckCommand fixes #120 Signed-off-by: Michael Friedrich --- AUTHORS | 1 + doc/10-icinga-template-library.md | 3 ++- itl/command-plugins.conf | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index e521be569..8972ec01f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -66,6 +66,7 @@ Joseph L. Casale Julian Brost Jérôme Drouet Konstantin Kelemen +Kálmán Szalai - KAMI Lars Engels Lars Krüger Lee Clemens diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 6129ff42d..8cdd1047d 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -601,7 +601,8 @@ 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. +http_link | **Optional.** Wrap output in HTML link. 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 fac617c68..01d745f65 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -457,6 +457,10 @@ object CheckCommand "http" { set_if = "$http_ipv6$" description = "Use IPv6 connection" } + "-L" = { + set_if = "$http_link$" + description = "Wrap output in HTML link" + } "-v" = { set_if = "$http_verbose$" description = "Show details for command-line debugging" @@ -470,6 +474,7 @@ object CheckCommand "http" { vars.http_invertregex = false vars.check_ipv4 = "$http_ipv4$" vars.check_ipv6 = "$http_ipv6$" + vars.http_link = false vars.http_verbose = false }