urlizing the result)
Message-ID: <5155a1fc.KjrdF3zpr2DnipLV%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 7b80fe8962be0e1ce0431012d76c901316261b1e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b80fe8962be0e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 29 15:15:07 2013 +0100
check_http: now support the option -L (urlizing the result)
---
ChangeLog | 1 +
checks/check_http | 3 +++
web/plugins/wato/active_checks.py | 9 +++++++++
3 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fae9c29..982489c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -84,6 +84,7 @@
* FIX: apc_symmetra_power: resurrect garble PNP template for
* FIX: check_mk_agent.freebsd: remove garble from output
(Thanks to Mathias Decker)
+ * check_http: now support the option -L (urlizing the result)
1.2.2b5:
Core:
diff --git a/checks/check_http b/checks/check_http
index 03f736d..ed8e361 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -115,6 +115,9 @@ def check_http_arguments(params):
if "max_age" in settings:
args += ' -M %d' % settings["max_age"]
+ if settings.get("urlize"):
+ args += ' -L'
+
if not omit_ip:
args = " -I $HOSTADDRESS$" + args
return args
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index 4a1b3d0..56d8d7e 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -450,6 +450,15 @@ register_rule(group,
default_value = 3600 * 24,
)
),
+ ( "urlize",
+ FixedValue(
+ value = True,
+ title = _("Clickable URLs"),
+ totext = _("Format check output as
hyperlink"),
+ help = _("With this option the check produces an
output that is a valid hyperlink "
+ "to the checked URL and this
clickable."),
+ )
+ ),
]
),