Module: check_mk
Branch: master
Commit: ad63f66cc2b8c0285bbdf6843252a568e1a80e5a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad63f66cc2b8c0…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed May 7 16:56:50 2014 +0200
FIX cisco_fru_power: Exluded not existing devices from the inventory
---
.werks/161 | 8 ++++++++
ChangeLog | 1 +
checks/cisco_fru_power | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/161 b/.werks/161
new file mode 100644
index 0000000..8fb57c7
--- /dev/null
+++ b/.werks/161
@@ -0,0 +1,8 @@
+Title: cisco_fru_power: Exluded not existing devices from the inventory
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1399474575
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 425c8ad..d562631 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -66,6 +66,7 @@
* 0157 FIX: apc_symmetra_test: Fixed case of unkown last test date
* 0910 FIX: brocade.power: fixed an error where the check reports an UNKNOWN on power
supply failure...
* 0158 FIX: dell_om_disks: Handle hotspares more correctly
+ * 0161 FIX: cisco_fru_power: Exluded not existing devices from the inventory
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled
by filter)
diff --git a/checks/cisco_fru_power b/checks/cisco_fru_power
index aeab3ac..11f3167 100644
--- a/checks/cisco_fru_power
+++ b/checks/cisco_fru_power
@@ -57,7 +57,7 @@ def inventory_cisco_fru_power(info):
# - in state 5:offEnvPower
return [ (line[0], None)
for line in info
- if line[2] not in ('', '1', '5') ]
+ if line[2] not in ('', '0', '1', '5') ]
def check_cisco_fru_power(item, _no_params, info):