Module: check_mk
Branch: master
Commit: ef9ed3b6f2f42d741b125ff2e40eaa1f2238caab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef9ed3b6f2f42d…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Feb 9 15:17:04 2015 +0100
netscaler_ha: changes in check output
---
checks/netscaler_ha | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/checks/netscaler_ha b/checks/netscaler_ha
index 88cb903..b5d9b34 100644
--- a/checks/netscaler_ha
+++ b/checks/netscaler_ha
@@ -60,7 +60,7 @@ netscaler_ha_cur_states = {
netscaler_ha_peer_mode = {
0: ("standalone", 0),
1: ("primary", 0),
- 2: ("secomdary", 0),
+ 2: ("secondary", 0),
3: ("unknown", 1),
}
@@ -75,8 +75,9 @@ def check_netscaler_ha(_no_item, _no_params, info):
if cur_status == 0:
infotext = "System not setup for HA"
else:
- infotext = "Mode: %s, State: %s" % (
netscaler_ha_peer_mode[peer_state][0],
- netscaler_ha_cur_states[cur_state][0],
+ infotext = "State: %s, Neighbour: %s" % (
+ netscaler_ha_cur_states[cur_state][0],
+ netscaler_ha_peer_mode[peer_state][0],
)
state = max(netscaler_ha_cur_states[cur_state][1],
netscaler_ha_peer_mode[peer_state][1])