Module: check_mk
Branch: master
Commit: 0324b448173c6c4c567330039fefabb097bf7137
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0324b448173c6c…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Aug 27 08:45:59 2015 +0200
added new metrics
---
web/plugins/metrics/check_mk.py | 58 +++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index 4931c0f..56ea7f7 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -182,6 +182,18 @@ unit_info["bar"] = {
"render" : lambda v: physical_precision(v, 6, _("bar")),
}
+unit_info["Pa"] = {
+ "title" : _("Pascal"),
+ "symbol" : _("Pa"),
+ "render" : lambda v: physical_precision(v, 3, _("Pa")),
+}
+
+unit_info["l/s"] = {
+ "title" : _("Liter per second"),
+ "symbol" : _("l/s"),
+ "render" : lambda v: physical_precision(v, 3, _("l/s")),
+}
+
#.
# .--Metrics-------------------------------------------------------------.
# | __ __ _ _ |
@@ -842,6 +854,18 @@ metric_info["smoke_perc"] = {
"color" : "#60f088",
}
+metric_info["airflow"] = {
+ "title" : _("Air flow"),
+ "unit" : "l/s",
+ "color" : "#ff6234",
+}
+
+metric_info["fluidflow"] = {
+ "title" : _("Fluid flow"),
+ "unit" : "l/s",
+ "color" : "#ff6234",
+}
+
metric_info["deviation_calibration_point"] = {
"title" : _("Deviation from calibration point"),
"unit" : "%",
@@ -2014,6 +2038,12 @@ metric_info["pressure"] = {
"color" : "#ff6234",
}
+metric_info["pressure_pa"] = {
+ "title" : _("Pressure"),
+ "unit" : "Pa",
+ "color" : "#ff6234",
+}
+
metric_info["licenses"] = {
"title" : _("Used licenses"),
"unit" : "count",
@@ -3369,6 +3399,13 @@ perfometer_info.append({
perfometer_info.append({
"type" : "logarithmic",
+ "metric" : "pressure_pa",
+ "half_value" : 10,
+ "exponent" : 2,
+})
+
+perfometer_info.append({
+ "type" : "logarithmic",
"metric" : "cifs_share_users",
"half_value" : 10,
"exponent" : 2,
@@ -3851,6 +3888,13 @@ perfometer_info.append({
})
perfometer_info.append({
+ "type" : "logarithmic",
+ "metric" : "energy",
+ "half_value" : 10000,
+ "exponent" : 3,
+})
+
+perfometer_info.append({
"type" : "linear",
"segments" : [ "voltage_percent" ],
"total" : 100.0,
@@ -4007,6 +4051,20 @@ perfometer_info.append({
"total" : 10,
})
+perfometer_info.append({
+ "type" : "logarithmic",
+ "metric" : "airflow",
+ "half_value" : 300,
+ "exponent" : 2,
+})
+
+perfometer_info.append({
+ "type" : "logarithmic",
+ "metric" : "fluidflow",
+ "half_value" : 0.2,
+ "exponent" : 5,
+})
+
perfometer_info.append(("stacked", [
{
"type" : "logarithmic",