Module: check_mk
Branch: master
Commit: c9e0a909c48024c2752c21d5d8c6b640eb896ca6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9e0a909c48024…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 12 17:45:12 2017 +0200
4655 fileinfo.groups: Added missing metric information
Change-Id: Ia6c0b58da9d70282723f5bce7d56e368da681bb7
---
.werks/4655 | 11 +++++++++
web/plugins/metrics/check_mk.py | 50 ++++++++++++++++++++++++++++++++++++++---
2 files changed, 58 insertions(+), 3 deletions(-)
diff --git a/.werks/4655 b/.werks/4655
new file mode 100644
index 0000000..dfcd43e
--- /dev/null
+++ b/.werks/4655
@@ -0,0 +1,11 @@
+Title: fileinfo.groups: Added missing metric information
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1494603823
+
+
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 36e7b85..1052f02 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -435,6 +435,29 @@ metric_info["file_size"] = {
"color" : "16/a",
}
+metric_info["total_file_size"] = {
+ "title" : _("Total file size"),
+ "unit" : "bytes",
+ "color" : "16/a",
+}
+metric_info["file_size_smallest"] = {
+ "title" : _("Smallest file"),
+ "unit" : "bytes",
+ "color" : "21/a",
+}
+
+metric_info["file_size_largest"] = {
+ "title" : _("Largest file"),
+ "unit" : "bytes",
+ "color" : "25/a",
+}
+
+metric_info["file_count"] = {
+ "title" : _("Amount of files"),
+ "unit" : "count",
+ "color" : "23/a",
+}
+
# database, tablespace
metric_info["database_size"] = {
@@ -2739,10 +2762,22 @@ metric_info["checkpoint_age"] = {
"color" : "#006040",
}
-metric_info["backup_age"] = {
- "title" : _("Time since last backup"),
+metric_info["checkpoint_age"] = {
+ "title" : _("Time since last checkpoint"),
"unit" : "s",
- "color" : "34/a",
+ "color" : "#006040",
+}
+
+metric_info["file_age_oldest"] = {
+ "title" : _("Oldest file"),
+ "unit" : "s",
+ "color" : "11/a",
+}
+
+metric_info["file_age_newest"] = {
+ "title" : _("Newest file"),
+ "unit" : "s",
+ "color" : "13/a",
}
metric_info["logswitches_last_hour"] = {
@@ -4593,6 +4628,15 @@ check_metrics["check_mk-fileinfo"] = {
"size" : { "name" : "file_size" }
}
+check_metrics["check_mk-fileinfo.groups"] = {
+ "size" : { "name" : "total_file_size" },
+ "size_smallest" : { "name" : "file_size_smallest" },
+ "size_largest" : { "name" : "file_size_largest" },
+ "count" : { "name" : "file_count" },
+ "age_oldest" : { "name" : "file_age_oldest" },
+ "age_newest" : { "name" : "file_age_newest" },
+}
+
check_metrics["check_mk-postgres_stat_database.size"] = {
"size" : { "name" : "database_size"}
}