Module: check_mk
Branch: master
Commit: c8cf8cab5a749940ceee7636bad13dadc64277e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c8cf8cab5a7499…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Mon Sep 24 13:05:57 2018 +0200
CMK-1063: Add metrics for memory and pagefile avg.
Change-Id: Ia47d88c333c671fb6631e54e201f6f4ace9923d5
---
cmk/gui/plugins/metrics/check_mk.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/cmk/gui/plugins/metrics/check_mk.py b/cmk/gui/plugins/metrics/check_mk.py
index 8d91f5b..b7c039a 100644
--- a/cmk/gui/plugins/metrics/check_mk.py
+++ b/cmk/gui/plugins/metrics/check_mk.py
@@ -693,6 +693,18 @@ metric_info["mem_total"] = {
"unit" : "bytes",
}
+metric_info["memory_avg"] = {
+ "title" : _("Memory Average"),
+ "color": "#80ff40",
+ "unit" : "bytes",
+}
+
+metric_info["pagefile_avg"] = {
+ "title" : _("Commit Charge Average"),
+ "color": "#408f20",
+ "unit" : "bytes",
+}
+
metric_info["mem_free"] = {
"title" : _("Free RAM"),
"color" : "#ffffff",
@@ -4675,6 +4687,8 @@ check_metrics["check_mk-aix_memory"] = {
check_metrics["check_mk-mem.win"] = {
"memory" : { "name" : "mem_used",
"scale" : MB },
"pagefile" : { "name" : "pagefile_used",
"scale" : MB },
+ "memory_avg" : { "scale" : MB },
+ "pagefile_avg" : { "scale" : MB },
"mem_total" : { "auto_graph" : False, "scale" : MB
},
"pagefile_total" : { "auto_graph" : False, "scale" :
MB},
}