From 4294372e4193be145c01a4c13fe92c52f267e564 Mon Sep 17 00:00:00 2001
From: anima
Date: Fri, 28 Feb 2025 21:48:56 +0100
Subject: [PATCH] try other uom because icinga / graphana do shit with this
---
checks/check_speedtest.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/check_speedtest.py b/checks/check_speedtest.py
index b41b66a..06696ff 100755
--- a/checks/check_speedtest.py
+++ b/checks/check_speedtest.py
@@ -46,9 +46,9 @@ class SpeedtestResource(nagiosplugin.Resource):
logging.debug(f'used server: {self.test.results.server}')
- yield nagiosplugin.Metric(name='download', value=round(to_mb(self.test.results.download), 2), uom=' mb/s', context='download_scalar_context')
- yield nagiosplugin.Metric(name='upload', value=round(to_mb(self.test.results.upload), 2), uom=' mb/s', context='upload_scalar_context')
- yield nagiosplugin.Metric(name='ping', value=self.test.results.ping, uom=' ms', context='ping_scalar_context')
+ yield nagiosplugin.Metric(name='download', value=round(to_mb(self.test.results.download), 2), uom='mbps', context='download_scalar_context')
+ yield nagiosplugin.Metric(name='upload', value=round(to_mb(self.test.results.upload), 2), uom='mbps', context='upload_scalar_context')
+ yield nagiosplugin.Metric(name='ping', value=self.test.results.ping, uom='ms', context='ping_scalar_context')
def parse_args() -> argparse.Namespace: