Module: check_mk
Branch: master
Commit: 4311bb9f7dd74615b9c300112f6f20546429be81
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4311bb9f7dd746…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Wed Jan 21 12:50:51 2015 +0100
removed a print statement
---
checks/netscaler_tcp_conns | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/checks/netscaler_tcp_conns b/checks/netscaler_tcp_conns
index 5ffc69b..7613bfa 100644
--- a/checks/netscaler_tcp_conns
+++ b/checks/netscaler_tcp_conns
@@ -45,18 +45,14 @@ def check_netscaler_tcp_conns(_no_item, params, info):
for name, (index, infotext) in tcp_conns_types.iteritems():
value = int(info[0][index])
infotext += ": %d" % value
- print params
- if params.get(name):
- warn, crit = params.get(name)
- else:
- warn, crit = None, None
+ warn, crit = params.get(name)
perfdata = [ (name, value, warn, crit, 0) ]
state = 0
- if crit and value >= crit:
+ if value >= crit:
state = 2
- elif warn and value >= warn:
+ elif value >= warn:
state = 1
if state > 0:
infotext += " (levels at %d/%d)" % (warn,crit)