Module: check_mk
Branch: master
Commit: 70c70691f3ca3be9f8423e570a9f7195ec0bccd6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=70c70691f3ca3b…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon May 8 17:11:50 2017 +0200
4474 FIX graphs for fileinfo checks: the size value was displayed without unit
information
Change-Id: Ia67620f903d5582e10580341882edbff355b12cf
---
.werks/4474 | 10 ++++++++++
web/plugins/metrics/check_mk.py | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/.werks/4474 b/.werks/4474
new file mode 100644
index 0000000..dc07287
--- /dev/null
+++ b/.werks/4474
@@ -0,0 +1,10 @@
+Title: graphs for fileinfo checks: the size value was displayed without unit information
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1494256217
+Class: fix
+
+
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index fae8c2c..cfc24a0 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -429,6 +429,12 @@ metric_info["zfs_l2_size"] = {
"color" : "31/a",
}
+metric_info["file_size"] = {
+ "title" : _("File size"),
+ "unit" : "bytes",
+ "color" : "16/a",
+}
+
# database, tablespace
metric_info["database_size"] = {
@@ -4572,6 +4578,10 @@ check_metrics["check_mk-postgres_sessions"] = {
"running": {"name": "running_sessions"}
}
+check_metrics["check_mk-fileinfo"] = {
+ "size" : { "name" : "file_size" }
+}
+
check_metrics["check_mk-postgres_stat_database.size"] = {
"size" : { "name" : "database_size"}
}