[checkmk-commits] Check_MK Git: check_mk: check_http: Added a missing option

git version control git at mathias-kettner.de
Mon Nov 19 10:41:30 CET 2012


Module: check_mk
Branch: master
Commit: c154d13b4c88b73cbb580288c9c950013800cb3a
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c154d13b4c88b73cbb580288c9c950013800cb3a

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Mon Nov 19 10:41:11 2012 +0100

check_http: Added a missing option

---

 checks/check_http |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/checks/check_http b/checks/check_http
index 935591b..8e3dce6 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -46,13 +46,14 @@ def check_http_arguments(params):
     if settings.get("ssl"):
         args += ' --ssl'
 
-    if "cert_days" in settings:
-        args += ' -C %d' % settings["cert_days"]
-
     if "cert_host" in settings:
         omit_ip = True
+        args += '-H $HOSTADDRESS$'
         args += ' -I %s' % quote_shell_string(settings['cert_host'])
 
+    if "cert_days" in settings:
+        args += ' -C %d' % settings["cert_days"]
+
     if settings.get("sni"):
         args += ' --sni'
 



More information about the checkmk-commits mailing list