Module: check_mk
Branch: master
Commit: 6fcf764eca4a4d33e0ffae55fea6f3efed042c15
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6fcf764eca4a4d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 8 10:31:26 2016 +0100
3276 FIX esx_vsphere_vm.snapshot: Graphs now scale the age of the scnapshots correctly
---
.werks/3276 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/metrics/check_mk.py | 15 ++++++++++++++-
3 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/.werks/3276 b/.werks/3276
new file mode 100644
index 0000000..3572738
--- /dev/null
+++ b/.werks/3276
@@ -0,0 +1,10 @@
+Title: esx_vsphere_vm.snapshot: Graphs now scale the age of the scnapshots correctly
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1457429460
+
+
diff --git a/ChangeLog b/ChangeLog
index 06d3f7d..eec95b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -63,6 +63,7 @@
* 3266 FIX: check_smtp: when set to IPv6 it used the IPv4 address nevertheless
* 3274 FIX: ibm_svc_disks: Fixed wrong listing of man page
* 3089 FIX: cmciii.temp: added handling for more device states
+ * 3276 FIX: esx_vsphere_vm.snapshot: Graphs now scale the age of the scnapshots
correctly
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index f9aae56..7433be8 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -328,6 +328,12 @@ metric_info["uptime"] = {
"color" : "#80f000",
}
+metric_info["age"] = {
+ "title" : _("Age"),
+ "unit" : "s",
+ "color" : "#80f000",
+}
+
metric_info["runtime"] = {
"title" : _("Process Runtime"),
"unit" : "s",
@@ -3428,7 +3434,7 @@ check_metrics["check_mk-apc_symmetra"] = {
"runtime" : { "name" : "lifetime_remaining",
"scale" : 60 },
}
-check_metrics["check_mk-kernel.util"] = {
+check_metrics["check_mk-kernel.util"] = {
"wait" : { "name" : "io_wait" },
"guest" : { "name" : "cpu_util_guest" },
"steal" : { "name" : "cpu_util_steal" },
@@ -3878,6 +3884,13 @@ perfometer_info.append({
perfometer_info.append({
"type" : "logarithmic",
+ "metric" : "age",
+ "half_value" : 2592000.0,
+ "exponent" : 2,
+})
+
+perfometer_info.append({
+ "type" : "logarithmic",
"metric" : "runtime",
"half_value" : 864000.0,
"exponent" : 2,