Module: check_mk
Branch: master
Commit: f326397c3b5ce4bbfeb9d0bb8acd06393e715b32
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f326397c3b5ce4…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Nov 16 09:33:03 2018 +0100
6813 FIX bdtms_tape_module: Evaluates module, board and power state correctly
Change-Id: I71da4cad8b3f9202ea681c2f097ebb8d596278d0
---
.werks/6813 | 10 ++++++++++
checks/bdtms_tape_module | 6 +++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/6813 b/.werks/6813
new file mode 100644
index 0000000..2891350
--- /dev/null
+++ b/.werks/6813
@@ -0,0 +1,10 @@
+Title: bdtms_tape_module: Evaluates module, board and power state correctly
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1542357102
+Class: fix
+
+
diff --git a/checks/bdtms_tape_module b/checks/bdtms_tape_module
index 76bd7ad..8df9a5f 100644
--- a/checks/bdtms_tape_module
+++ b/checks/bdtms_tape_module
@@ -36,13 +36,13 @@ def check_bdtms_tape_module(item, _no_params, info):
return 0 if status.lower() == 'ok' else 2
for device in info:
- device_id, module_status, _board_status, _power_status = device
+ device_id, module_status, board_status, power_status = device
if device_id != item:
continue
yield state(module_status), "Module: %s" % module_status.lower()
- yield state(module_status), "Board: %s" % module_status.lower()
- yield state(module_status), "Power supply: %s" % module_status.lower()
+ yield state(board_status), "Board: %s" % board_status.lower()
+ yield state(power_status), "Power supply: %s" % power_status.lower()
check_info['bdtms_tape_module'] = {