Module: check_mk
Branch: master
Commit: 6ad45e15e8b0bb5c9eaf631167defbbeae19c3ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6ad45e15e8b0bb…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Aug 16 14:53:33 2016 +0200
fixed http warn/crit response time levels: unsupported operand
---
checks/check_http | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/check_http b/checks/check_http
index 1b29aed..ebdd702 100644
--- a/checks/check_http
+++ b/checks/check_http
@@ -80,8 +80,8 @@ def check_http_arguments(params):
args.append('--sni')
if "response_time" in settings:
- args += [ '-w', '%f' %
settings["response_time"][0]/1000.0,
- '-c', '%f' %
settings["response_time"][1]/1000.0 ]
+ args += [ '-w', '%f' %
(settings["response_time"][0]/1000.0),
+ '-c', '%f' %
(settings["response_time"][1]/1000.0) ]
if "timeout" in settings:
args += [ '-t', settings["timeout"] ]