From 2a22aeeaecccf736bc6bfebbde1d83ceabb47d09 Mon Sep 17 00:00:00 2001 From: Timotheus Bachinger Date: Mon, 7 Oct 2024 10:16:50 +0200 Subject: [PATCH] 16254 Add metric translations mrpe based windows checks ... streamline comments on the way Change-Id: Idff2035504f2756eedbca29f89386a6e9a3a8733 JIRA-Ref: SUP-20342 --- .werks/16254 | 11 +++++++++++ cmk/gui/plugins/metrics/translation.py | 11 ++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .werks/16254 diff --git a/.werks/16254 b/.werks/16254 new file mode 100644 index 00000000000..78e40f0c85c --- /dev/null +++ b/.werks/16254 @@ -0,0 +1,11 @@ +Title: Add metric translations mrpe based windows checks +Class: feature +Compatible: compat +Component: checks +Date: 1728288891 +Edition: cre +Level: 1 +Version: 2.2.0p36 + +Metrics provided by check_ping.exe or check_tcp.exe have now a metric translation and are +displayed in a correct manner. diff --git a/cmk/gui/plugins/metrics/translation.py b/cmk/gui/plugins/metrics/translation.py index 13df2715f51..147824b8f54 100644 --- a/cmk/gui/plugins/metrics/translation.py +++ b/cmk/gui/plugins/metrics/translation.py @@ -31,10 +31,19 @@ "~.*rtmax": {"scale": m}, "~.*rtmin": {"scale": m}, } -# May be provided by an check_ping check configured as mrpe +# May be provided by a check_ping.exe check configured as mrpe at Windows agent +check_metrics["check_ping_exe"] = { + "~.*rta": {"scale": m}, +} +# May be provided by a check_tcp.exe check configured as mrpe at Windows agent +check_metrics["check_tcp_exe"] = { + "time": {"name": "response_time"}, +} +# May be provided by a check_ping check configured as mrpe check_metrics["check_ping"] = { "~.*rta": {"scale": m}, } +# May be provided by a check_tcp check configured as mrpe check_metrics["check_tcp"] = { "time": {"name": "response_time"}, }