Module: check_mk
Branch: master
Commit: 0d249901cf1177ea153e1736b340db91a4d6b02b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0d249901cf1177…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 13 11:40:40 2017 +0200
5125 FIX brocade_mlx_power: Fixed wrong index usage which leads to undetected power
supplies
Change-Id: I3b656235ba07e361e06013716eff3541ff570047
---
.werks/5125 | 11 +++++++++++
checks/brocade_mlx_power | 5 ++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/5125 b/.werks/5125
new file mode 100644
index 0000000..3c46b4e
--- /dev/null
+++ b/.werks/5125
@@ -0,0 +1,11 @@
+Title: brocade_mlx_power: Fixed wrong index usage which leads to undetected power
supplies
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1505295350
+
+
diff --git a/checks/brocade_mlx_power b/checks/brocade_mlx_power
index f9a7d7d..65c95b5 100644
--- a/checks/brocade_mlx_power
+++ b/checks/brocade_mlx_power
@@ -29,9 +29,9 @@ def parse_brocade_mlx_power(info):
if len(info[1]) > 0:
# .1.3.6.1.4.1.1991.1.1.1.2.2.1
- for power_unit, power_id, power_desc, power_state in info[1]:
+ for power_id, power_desc, power_state in info[1]:
if power_state != "1":
- parsed[power_unit] = { 'desc' : power_desc,
+ parsed[power_id] = { 'desc' : power_desc,
'state' : power_state }
else:
# .1.3.6.1.4.1.1991.1.1.1.2.1.1
@@ -77,7 +77,6 @@ check_info["brocade_mlx_power"] = {
3, # FOUNDRY-SN-AGENT-MIB::snChasPwrSupplyOperStatus
]),
('.1.3.6.1.4.1.1991.1.1.1.2.2.1', [
- 1, # FOUNDRY-SN-AGENT-MIB::snChasPwrSupply2Unit
2, # FOUNDRY-SN-AGENT-MIB::snChasPwrSupply2Index
3, # FOUNDRY-SN-AGENT-MIB::snChasPwrSupply2Description
4, # FOUNDRY-SN-AGENT-MIB::snChasPwrSupply2OperStatus