Module: check_mk
Branch: master
Commit: ee0ed4cdc1d432930abf9b277fc14e82f58151c2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee0ed4cdc1d432…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jul 27 13:24:57 2016 +0200
check_mailboxes now supports using passwords from store
---
checks/check_mailboxes | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/check_mailboxes b/checks/check_mailboxes
index 38212cc..ff8e1d5 100644
--- a/checks/check_mailboxes
+++ b/checks/check_mailboxes
@@ -30,7 +30,7 @@ def check_mailboxes_arguments(params):
fetch_params = params['imap_parameters']
if 'server' in fetch_params:
- args.append('--server=%s' %
quote_shell_string(fetch_params['server']))
+ args.append('--server=%s' % fetch_params['server'])
else:
args.append('--server=$HOSTADDRESS$')
@@ -43,7 +43,7 @@ def check_mailboxes_arguments(params):
username, password = fetch_params['auth']
- args.append('--username=%s' % quote_shell_string(username))
+ args.append('--username=%s' % username)
args.append(passwordstore_get_cmdline("--password=%s", password))
if 'connect_timeout' in params:
@@ -68,7 +68,7 @@ def check_mailboxes_arguments(params):
for mb in params['mailboxes']:
args.append('--mailbox=%s' % mb)
- return " ".join(args)
+ return args
active_check_info['mailboxes'] = {