Module: check_mk
Branch: master
Commit: 9b1f23cf6767553a0267b0a48bb1754917d2751c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9b1f23cf676755…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Sep 15 10:29:28 2017 +0200
5279 FIX qnap_disks: Just discover slots that are not empty
Change-Id: Ie9ff602c97255ed4a0fb3a04e2b791a6545d9a38
---
.werks/5279 | 11 +++++++++++
checks/qnap_disks | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5279 b/.werks/5279
new file mode 100644
index 0000000..6d2ca7b
--- /dev/null
+++ b/.werks/5279
@@ -0,0 +1,11 @@
+Title: qnap_disks: Just discover slots that are not empty
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1505464015
+
+
diff --git a/checks/qnap_disks b/checks/qnap_disks
index c6cc8c0..79bc311 100644
--- a/checks/qnap_disks
+++ b/checks/qnap_disks
@@ -25,7 +25,7 @@
# Boston, MA 02110-1301 USA.
def inventory_qnap_disks(info):
- return [ (x[0], None) for x in info ]
+ return [ (x[0], None) for x in info if x[2] != "-5"]
def check_qnap_disks(item, _no_params, info):
for desc, temp, status, model, size, cond in info: