Module: check_mk
Branch: master
Commit: 98fb951d655955821c1f3fa008bacb7ec09de740
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=98fb951d655955…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Mar 24 15:41:35 2016 +0100
3307 FIX dell_poweredge_netdev: does not discover disconnected network devices any more
---
.werks/3307 | 10 ++++++++++
ChangeLog | 1 +
checks/dell_poweredge_netdev | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3307 b/.werks/3307
new file mode 100644
index 0000000..31e86dc
--- /dev/null
+++ b/.werks/3307
@@ -0,0 +1,10 @@
+Title: dell_poweredge_netdev: does not discover disconnected network devices any more
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1458830483
+
+
diff --git a/ChangeLog b/ChangeLog
index 5be31f0..96ce72b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -106,6 +106,7 @@
* 3107 FIX: heartbeat_crm: fixed incorrect timezone handling...
* 3341 FIX: df: Ignoring mounted lib*.so.1 volumes (seen on Solaris 10)
* 3306 FIX: docsis_channels_upstream: fixed missing channel handling
+ * 3307 FIX: dell_poweredge_netdev: does not discover disconnected network devices any
more
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/checks/dell_poweredge_netdev b/checks/dell_poweredge_netdev
index 8cd383c..39d8960 100644
--- a/checks/dell_poweredge_netdev
+++ b/checks/dell_poweredge_netdev
@@ -27,7 +27,7 @@
def inventory_dell_poweredge_netdev(info):
inventory = []
for line in info:
- if line[4] != "":
+ if line[1] != "2" and line[4] != "":
inventory.append( ( line[4], None ) )
return inventory