Module: check_mk
Branch: master
Commit: 875a0802a72ed23cd0d24b70a7795b7a5846f676
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=875a0802a72ed2…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Jan 9 15:52:58 2015 +0100
two more fixes to netscaler_ha and netscaler_mem
---
checks/netscaler_ha | 2 +-
checks/netscaler_mem | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/netscaler_ha b/checks/netscaler_ha
index dfb47fe..88cb903 100644
--- a/checks/netscaler_ha
+++ b/checks/netscaler_ha
@@ -78,7 +78,7 @@ def check_netscaler_ha(_no_item, _no_params, info):
infotext = "Mode: %s, State: %s" % (
netscaler_ha_peer_mode[peer_state][0],
netscaler_ha_cur_states[cur_state][0],
)
- state = max(netscaler_ha_cur_states[cur_state][1],
netscaler_ha_peer_mode[peer_state)[1])
+ state = max(netscaler_ha_cur_states[cur_state][1],
netscaler_ha_peer_mode[peer_state][1])
return state, infotext
diff --git a/checks/netscaler_mem b/checks/netscaler_mem
index 9bb54b1..b869e07 100644
--- a/checks/netscaler_mem
+++ b/checks/netscaler_mem
@@ -46,9 +46,9 @@ def check_netscaler_mem(_no_item, params, info):
state = 0
if used_mem >= crit:
state = 2
- infotext += " (levels at %.1f%%/%.1f%%)" % (warn_perc, crit_perc)
elif used_mem >= warn:
state = 1
+ if state > 0:
infotext += " (levels at %.1f%%/%.1f%%)" % (warn_perc, crit_perc)
return state, infotext, perfdata