[checkmk-commits] Check_MK Git: check_mk: Added option for check_http wato config

git version control git at mathias-kettner.de
Fri Nov 9 15:22:01 CET 2012


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

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Fri Nov  9 15:21:41 2012 +0100

Added option for check_http wato config

---

 checks/check_http                 |    4 ++++
 web/plugins/wato/active_checks.py |    8 ++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/checks/check_http b/checks/check_http
index b392263..935591b 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -49,6 +49,10 @@ def check_http_arguments(params):
     if "cert_days" in settings:
         args += ' -C %d' % settings["cert_days"]
 
+    if "cert_host" in settings:
+        omit_ip = True
+        args += ' -I %s' % quote_shell_string(settings['cert_host'])
+
     if settings.get("sni"):
         args += ' --sni'
 
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index b770b13..5bba69a 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -466,6 +466,14 @@ register_rule(group,
                                  unit = _("days"),
                              )
                           ),
+                           ( "cert_host", 
+                             TextAscii(
+                               title = _("Check Cerficate on diffrent IP/ DNS Name"), 
+                               help = _("For each SSL cerficate on a host, a diffrent IP address is needed. " 
+                                        "Here you can specify there address if it differs from the  "
+                                        "address from the host primary address."),
+                            )
+                           ),
                         ],
                         required_keys = [ "cert_days" ],
                     ),



More information about the checkmk-commits mailing list