Module: check_mk
Branch: master
Commit: cc66da11d0cb6e5b285de601cc5a06b4796b6fec
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc66da11d0cb6e…
Author: Andreas Doehler <andreas.doehler(a)gmail.com>
Date: Wed Oct 17 00:14:25 2012 +0200
Added missing host parameter to active check_smtp
---
checks/check_smtp | 6 ++++--
web/plugins/wato/active_checks.py | 6 ++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/checks/check_smtp b/checks/check_smtp
index 50cc3be..7ace91b 100644
--- a/checks/check_smtp
+++ b/checks/check_smtp
@@ -70,8 +70,10 @@ def check_smtp_arguments(params):
if 'cert_days' in settings:
args += ' -D %d' % settings['cert_days']
- print args
-
+ if 'hostname' in settings:
+ args += ' -H %s' % settings['hostname']
+ else:
+ args += ' -H $HOSTADDRESS$'
return args
diff --git a/web/plugins/wato/active_checks.py b/web/plugins/wato/active_checks.py
index f3259f8..b770b13 100644
--- a/web/plugins/wato/active_checks.py
+++ b/web/plugins/wato/active_checks.py
@@ -593,6 +593,12 @@ register_rule(group,
Dictionary(
title = _("Optional parameters"),
elements = [
+ ( "hostname",
+ TextAscii(
+ title = _("DNS Hostname or IP address"),
+ allow_empty = False,
+ help = _("You can specify a hostname or IP address
different from IP address "
+ "of the host as configured in your host
properties."))),
( "port",
TextAscii(
title = _("TCP Port to connect to"),