Module: check_mk
Branch: master
Commit: 39c4368450a4e2386a68c833b76d18ccb603ed75
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39c4368450a4e2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 27 10:09:15 2015 +0100
Added new metrics definition for check_tcp
---
web/plugins/metrics/check_mk.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index df9897a..71a38da 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -183,6 +183,12 @@ metric_info["pl"] = {
"color" : "#ffc030",
}
+metric_info["response_time"] = {
+ "title" : _("Response time"),
+ "unit" : "s",
+ "color" : "#40a0b0",
+}
+
metric_info["uptime"] = {
"title" : _("Uptime"),
"unit" : "s",
@@ -1054,6 +1060,8 @@ check_metrics["check-mk"]
= {}
check_metrics["check-mk-ping"] = {}
check_metrics["check-mk"] = {}
+check_metrics["check_mk_active-tcp"] = {
"time" : { "name": "response_time" } }
+
check_metrics["check_mk-uptime"] = {}
check_metrics["check_mk-esx_vsphere_counters.uptime"] = {}
check_metrics["check_mk-fritz.uptime"] = {}
@@ -1335,6 +1343,14 @@ perfometer_info.append({
"exponent" : 2,
})
+perfometer_info.append({
+ "type" : "logarithmic",
+ "metric" : "response_time",
+ "half_value" : 10,
+ "exponent" : 4,
+})
+
+
perfometer_info.append(("logarithmic", ( "rta", 0.1, 4)))
perfometer_info.append(("linear", ( ["execution_time"], 90.0,
None)))
perfometer_info.append(("logarithmic", ( "load1", 4.0,
2.0)))
@@ -1501,6 +1517,7 @@ define_generic_graph("process_creations")
define_generic_graph("threads")
define_generic_graph("runtime")
define_generic_graph("execution_time")
+define_generic_graph("response_time")
define_generic_graph("uptime")
define_generic_graph("temp")
define_generic_graph("time_offset")