Module: check_mk
Branch: master
Commit: 6ca432ee391a350c6c6ccc4a35c100d9af6887aa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6ca432ee391a35…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 5 08:48:58 2013 +0200
Added tcp port parameter to SSL certificate check (Thanks to Marcel Schulte)
---
ChangeLog | 3 ++
web/plugins/wato/active_checks.py | 42 ++++++++++++++++++++++---------------
2 files changed, 28 insertions(+), 17 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8969ac7..056b979 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,9 @@
Multisite:
* FIX: Fixed umlaut handling in reloaded snapins
+ WATO:
+ * Added tcp port parameter to SSL certificate check (Thanks to Marcel Schulte)
+
1.2.2b7:
Checks & Agents:
* FIX: postfix_mailq: fix labels in WATO rule, set correct default levels
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index 56d8d7e..2e8a13b 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -465,23 +465,31 @@ register_rule(group,
Dictionary(
title = _("Check SSL Certificate Age"),
elements = [
- ( "cert_days",
- Integer(
- title = _("Age"),
- help = _("Minimum number of days a certificate has
to be valid. "
- "Port defaults to 443. When this option is
used the URL "
- "is not checked."),
- 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."),
- )
- ),
+ ( "cert_days",
+ Integer(
+ title = _("Age"),
+ help = _("Minimum number of days a certificate
has to be valid. "
+ "Port defaults to 443. When this option
is used the URL "
+ "is not checked."),
+ 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."),
+ )
+ ),
+ ("port",
+ Integer(
+ title = _("TCP Port"),
+ minvalue = 1,
+ maxvalue = 65535,
+ default_value = 443,
+ )
+ ),
],
required_keys = [ "cert_days" ],
),