Module: check_mk
Branch: master
Commit: 26dcf21df8d56beef71246b1c3960d77d5a1ae7d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26dcf21df8d56b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Nov 26 13:37:51 2018 +0100
6816 FIX tsm_scratch: Fixed wrong format of performance data which caused a TypeError
Change-Id: I3a5c3e77f6668861e4ca77ebc90d7c48ee2aa471
---
.werks/6816 | 10 ++++++++++
checks/tsm_scratch | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6816 b/.werks/6816
new file mode 100644
index 0000000..0c2a9af
--- /dev/null
+++ b/.werks/6816
@@ -0,0 +1,10 @@
+Title: tsm_scratch: Fixed wrong format of performance data which caused a TypeError
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1543235854
+Class: fix
+
+
diff --git a/checks/tsm_scratch b/checks/tsm_scratch
index be717ac..135d7fb 100644
--- a/checks/tsm_scratch
+++ b/checks/tsm_scratch
@@ -50,6 +50,7 @@ def check_tsm_scratch(item, params, info):
found_item = "%s / %s" % (inst, library)
else:
found_item = library
+
if found_item == item:
tapes = saveint(tapes)
state = 0
@@ -59,7 +60,7 @@ def check_tsm_scratch(item, params, info):
state = 1
return state, "Found %d tapes" % tapes, \
- [ ("tapes_free"), tapes, warn, crit ]
+ [ ("tapes_free", tapes, warn, crit) ]
return 3, "UNKNOWN - Check no implemented"