Module: check_mk
Branch: master
Commit: 49fb7f109a8d64e424494b2bd91aedfba2e2d2a9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49fb7f109a8d64…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Apr 4 10:01:56 2018 +0200
5936 FIX Fixed broken metrics in Fireeye statistics checks. Affected performance graphs
are now generated correctly.
Change-Id: I39bbebef78d7d1c6bbc1f867aa4263733b79d549
---
.werks/5936 | 10 ++++++++++
web/plugins/metrics/check_mk.py | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/5936 b/.werks/5936
new file mode 100644
index 0000000..d39497e
--- /dev/null
+++ b/.werks/5936
@@ -0,0 +1,10 @@
+Title: Fixed broken metrics in Fireeye statistics checks. Affected performance graphs are
now generated correctly.
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1522828886
+Class: fix
+
+
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index af91f66..3fa54ed 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -4196,7 +4196,7 @@ for what, color in [
metric_info_key = '%s_rate' % what.lower()
metric_info[metric_info_key] = {
'title' : _('%s per Second') % what,
- 'unit' : '1/sec',
+ 'unit' : '1/s',
'color' : color,
}
@@ -4209,7 +4209,7 @@ for what, color in [
metric_info_key = 'fireeye_stat_%s' % what.replace(' ',
'').lower()
metric_info[metric_info_key] = {
'title' : _('Emails containing %s per Second') % what,
- 'unit' : '1/sec',
+ 'unit' : '1/s',
'color' : color,
}