Module: check_mk
Branch: master
Commit: ef07e2a9acbe4dd7a84098a947d6d16a0cd83bc9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef07e2a9acbe4d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue May 23 08:36:15 2017 +0200
4735 FIX check_mailboxes: Fixed broken check when setting "connect timeout"
option
Change-Id: I0bc57bb8560411f022074577e327c5d1e397c5e9
---
.werks/4735 | 11 +++++++++++
checks/check_mailboxes | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4735 b/.werks/4735
new file mode 100644
index 0000000..13346fa
--- /dev/null
+++ b/.werks/4735
@@ -0,0 +1,11 @@
+Title: check_mailboxes: Fixed broken check when setting "connect timeout"
option
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1495521358
+
+
diff --git a/checks/check_mailboxes b/checks/check_mailboxes
index ff8e1d5..2ff2ee3 100644
--- a/checks/check_mailboxes
+++ b/checks/check_mailboxes
@@ -47,7 +47,7 @@ def check_mailboxes_arguments(params):
args.append(passwordstore_get_cmdline("--password=%s", password))
if 'connect_timeout' in params:
- args.append('--connect-timeout=%d' % params['connect_timeout'])
+ args.append('--timeout=%d' % params['connect_timeout'])
if 'retrieve_max' in params:
args.append('--retrieve-max=%d' % params['retrieve_max'])