Module: check_mk
Branch: master
Commit: b3a5a99eb3209f6daf5ca2f84c69728f333395bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3a5a99eb3209f…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jun 8 12:10:45 2017 +0200
4791 tsm_scratch: Now creates graph for remaining tapes
Change-Id: I46c6fac57670904c91a07fd3fe3f323f38e11cb6
---
.werks/4791 | 10 ++++++++++
checks/tsm_scratch | 6 ++++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/4791 b/.werks/4791
new file mode 100644
index 0000000..9b3796b
--- /dev/null
+++ b/.werks/4791
@@ -0,0 +1,10 @@
+Title: tsm_scratch: Now creates graph for remaining tapes
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1496916602
+Class: feature
+
+
diff --git a/checks/tsm_scratch b/checks/tsm_scratch
index 900b249..62a69c1 100644
--- a/checks/tsm_scratch
+++ b/checks/tsm_scratch
@@ -55,14 +55,16 @@ def check_tsm_scratch(item, params, info):
elif tapes <= warn:
state = 1
- return state, "Found %d tapes" % tapes
+ return state, "Found %d tapes" % tapes, \
+ [ ("tapes_free"), tapes, warn, crit ]
return 3, "UNKNOWN - Check no implemented"
check_info["tsm_scratch"] = {
- "check_function" : check_tsm_scratch,
"inventory_function" : inventory_tsm_scratch,
+ "check_function" : check_tsm_scratch,
"service_description" : "Scratch Pool %s",
+ "has_perfdata" : True,
}