Module: check_mk
Branch: master
Commit: 0e92e475eafd4205b7013b32c1ee8caee5817716
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e92e475eafd42…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 8 11:51:47 2014 +0100
check_mail_loop: fixed datatype on command line creation
---
checks/check_mail_loop | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/check_mail_loop b/checks/check_mail_loop
index 067240e..2842217 100644
--- a/checks/check_mail_loop
+++ b/checks/check_mail_loop
@@ -36,7 +36,7 @@ def check_mail_loop_arguments(params):
args == ' --smtp-tls'
if 'smtp_port' in params:
- args += ' --smtp-port=%s' %
quote_shell_string(params['smtp_port'])
+ args += ' --smtp-port=%d' % params['smtp_port']
if 'smtp_auth' in params:
args += ' --smtp-username=%s' %
quote_shell_string(params['smtp_auth'][0])
@@ -54,7 +54,7 @@ def check_mail_loop_arguments(params):
if fetch_use_ssl:
args += ' --fetch-ssl'
if fetch_port != None:
- args += ' --fetch-port=%s' % quote_shell_string(fetch_port)
+ args += ' --fetch-port=%d' % fetch_port
args += ' --fetch-username=%s' %
quote_shell_string(fetch_params['auth'][0])
args += ' --fetch-password=%s' %
quote_shell_string(fetch_params['auth'][1])
@@ -63,7 +63,7 @@ def check_mail_loop_arguments(params):
args += ' --mail-to=%s' % quote_shell_string(params['mail_to'])
if 'connect_timeout' in params:
- args += ' --connect-timeout=%s' %
quote_shell_string(params['connect_timeout'])
+ args += ' --connect-timeout=%d' % params['connect_timeout']
if 'delete_messages' in params:
args += ' --delete-messages'