Module: check_mk
Branch: master
Commit: 8b2e807b81c3c6119f28436bf36557672d934903
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b2e807b81c3c6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Mar 2 17:12:14 2017 +0100
added comment
Change-Id: I17220cdc4c4c08c3278cb24986b24d14c7186a2b
---
checks/cisco_fru_power | 2 ++
1 file changed, 2 insertions(+)
diff --git a/checks/cisco_fru_power b/checks/cisco_fru_power
index 7ca7e8a..366eba2 100644
--- a/checks/cisco_fru_power
+++ b/checks/cisco_fru_power
@@ -86,6 +86,8 @@ def parse_cisco_fru_power(info):
ppre_parsed = {}
for end_oid, oper_state, fru_current in info[0]:
+ # We discover only "real" power supplies which have current value >=
0
+ # Others such as modules do not have such values
if oper_state not in [ "", "0", "1", "5"
] and \
fru_current and int(fru_current) >= 0:
ppre_parsed.setdefault(end_oid, map_states.get(oper_state, (3,
"unexpected(%s)" % oper_state)))