Module: check_mk
Branch: master
Commit: 4fea2bb89f870c26994d5e1a91635b0c9d7196e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4fea2bb89f870c…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jan 4 11:16:34 2016 +0100
#2887 FIX docsis_channels_downstream: now handles correct the downstream power in dBmV
---
.werks/2887 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/metrics/check_mk.py | 18 +++++++++++++++++-
3 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/.werks/2887 b/.werks/2887
new file mode 100644
index 0000000..00df849
--- /dev/null
+++ b/.werks/2887
@@ -0,0 +1,10 @@
+Title: docsis_channels_downstream: now handles correct the downstream power in dBmV
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1451902474
+
+
diff --git a/ChangeLog b/ChangeLog
index 624b45b..28bc6f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -165,6 +165,7 @@
* 2818 FIX: check_mail_loop: now only deletes expected mails and not all mails
matching a specific pattern...
* 2819 FIX: netapp_api_if: now able to detect even more interfaces...
* 2820 FIX: winperf_phydisk: fixed invalid performance data for read/write ios
+ * 2887 FIX: docsis_channels_downstream: now handles correct the downstream power in
dBmV
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index a7dfbba..0ef6b0b 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -158,11 +158,17 @@ unit_info["wh"] = {
}
unit_info["dbm"] = {
- "title" : _("Decibel-milliwatts"),
+ "title" : _("Decibel-milliwatts"),
"symbol" : _("dBm"),
"render" : lambda v: "%s %s" % (drop_dotzero(v),
_("dBm")),
}
+unit_info["dbmv"] = {
+ "title" : _("Decibel-millivolt"),
+ "symbol" : _("dBmV"),
+ "render" : lambda v: "%s %s" % (drop_dotzero(v),
_("dBmV")),
+}
+
unit_info["db"] = {
"title" : _("Decibel"),
"symbol" : _("dB"),
@@ -1128,6 +1134,12 @@ metric_info["output_signal_power_dbm"] = {
"color" : "#2080c0",
}
+metric_info["downstream_power"] = {
+ "title" : _("Downstream power"),
+ "unit" : "dbmv",
+ "color" : "14/a",
+}
+
metric_info["current"] = {
"title" : _("Electrical current"),
"unit" : "a",
@@ -3311,6 +3323,10 @@ check_metrics["check_mk-docsis_channels_upstream"] = {
"frequency" : { "scale" : 1000000.0 },
}
+check_metrics["check_mk-docsis_channels_downstream"] = {
+ "power" : { "name" : "downstream_power" },
+}
+
check_metrics["check_mk-zfs_arc_cache"] = {
"hit_ratio" : { "name": "cache_hit_ratio", },
"size" : { "name": "caches", "scale"
: MB },