Module: check_mk
Branch: master
Commit: f00ab9843d6e2803dbcf0a85fe1972915e413c8f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f00ab9843d6e28…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Feb 13 15:40:55 2014 +0100
FIX cisco_fru_power: Prevent inventory of not exsisting devices
---
.werks/136 | 9 +++++++++
ChangeLog | 1 +
checks/cisco_fru_power | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/136 b/.werks/136
new file mode 100644
index 0000000..5efac92
--- /dev/null
+++ b/.werks/136
@@ -0,0 +1,9 @@
+Title: cisco_fru_power: Prevent inventory of not exsisting devices
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1392302417
+
+
diff --git a/ChangeLog b/ChangeLog
index 5751d00..4590948 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -175,6 +175,7 @@
* 0582 FIX: cisco_sys_mem: check now has a man page and a new WATO integration
* 0667 FIX: oracle_asm_diskgroup: Now really uses the generic filesystem levels...
* 0555 FIX: snmp_uptime: no longer fails if uptime is < 1 seconds
+ * 0136 FIX: cisco_fru_power: Prevent inventory of not exsisting devices
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/checks/cisco_fru_power b/checks/cisco_fru_power
index 9d072eb..f8188f0 100644
--- a/checks/cisco_fru_power
+++ b/checks/cisco_fru_power
@@ -59,7 +59,7 @@
def inventory_cisco_fru_power(info):
- return [ (line[0], None ) for line in info if saveint(line[2]) not in [ 1, 5 ] ]
+ return [ (line[0], None ) for line in info if saveint(line[2]) not in [ 0, 1, 5 ]
]
def check_cisco_fru_power(item, params, info):
for line in info: