Module: check_mk
Branch: master
Commit: 67e00781b3540702b2a5b321b19c9f7419d4aae1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=67e00781b35407…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Mar 22 08:56:32 2019 +0100
7354 FIX tsm_storagepools: Fixed missing labels in performance graphs
Change-Id: Icf6605b512ae2eb6554385dec36ea4b060c73f16
---
.werks/7354 | 10 ++++++++++
checks/tsm_storagepools | 7 +++----
cmk/gui/plugins/metrics/check_mk.py | 6 ++++++
3 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/.werks/7354 b/.werks/7354
new file mode 100644
index 0000000..69dd85c
--- /dev/null
+++ b/.werks/7354
@@ -0,0 +1,10 @@
+Title: tsm_storagepools: Fixed missing labels in performance graphs
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1553241318
+Class: fix
+
+
diff --git a/checks/tsm_storagepools b/checks/tsm_storagepools
index a2fc925..ae6ae34 100644
--- a/checks/tsm_storagepools
+++ b/checks/tsm_storagepools
@@ -67,10 +67,9 @@ def check_tsm_storagepools(item, _no_params, parsed):
data = parsed[item]
stype = data["type"]
- size = data["size"]
- return 0, "Used size: %s, Type: %s" % \
- (get_bytes_human_readable(int(float(size) * 1024 * 1024)), stype), \
- [ ("used", float(size)) ]
+ size = int(float(data["size"]) * 1024**2)
+ return 0, "Used size: %s, Type: %s" % (get_bytes_human_readable(size),
stype),\
+ [("used_space", size)]
check_info['tsm_storagepools'] = {
diff --git a/cmk/gui/plugins/metrics/check_mk.py b/cmk/gui/plugins/metrics/check_mk.py
index aec4b44..794fc92 100644
--- a/cmk/gui/plugins/metrics/check_mk.py
+++ b/cmk/gui/plugins/metrics/check_mk.py
@@ -7187,6 +7187,12 @@ check_metrics["check_mk-tsm_stagingpools"] = {
}
}
+check_metrics["check_mk-tsm_storagepools"] = {
+ "used": {
+ "name": "used_space"
+ },
+}
+
check_metrics["check_mk-hpux_tunables.shmseg"] = {
"segments": {
"name": "shared_memory_segments"