Module: check_mk
Branch: master
Commit: 839b98fb1a50ea9ecc160fccb5bf050436354509
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=839b98fb1a50ea…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 14 12:10:13 2019 +0100
WK7244: Restricted WATO sidebar snapin only show up to 10+ changes
Change-Id: Ie5882973ecdf23f525451113a4233b35599e9c7a
---
.werks/7244 | 17 +++++++++++++++++
cmk/gui/plugins/sidebar/wato.py | 6 +++---
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/.werks/7244 b/.werks/7244
new file mode 100644
index 0000000..ce02d5e
--- /dev/null
+++ b/.werks/7244
@@ -0,0 +1,17 @@
+Title: Restricted WATO sidebar snapin only show up to 10+ changes
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1552391861
+
+The sidebar snapin and the WATO main page now use the same infotext to display the number of pending changes.
+This infotext currently displays only up to 10 changes in detail. Any number above 10 is abstracted with the text <tt>10+ changes</tt>.
+The reasoning behind this is, that there may be some sites with thousands of pending changes.
+Determining the exact number generally takes some time, hereby slowing down the rending of any page showing this infotext.
+
+
+The <tt>10+ changes</tt> limit may be lifted in the future, once a more performant changes measurement functionality has been introduced.
diff --git a/cmk/gui/plugins/sidebar/wato.py b/cmk/gui/plugins/sidebar/wato.py
index 1bdeaa7..bdb5317 100644
--- a/cmk/gui/plugins/sidebar/wato.py
+++ b/cmk/gui/plugins/sidebar/wato.py
@@ -66,9 +66,9 @@ def render_wato(mini):
else:
iconlink(module.title, url, module.icon)
- num_pending = watolib.get_number_of_pending_changes()
- if num_pending:
- footnotelinks([(_("%d changes") % num_pending, "wato.py?mode=changelog")])
+ pending_info = watolib.get_pending_changes_info()
+ if pending_info:
+ footnotelinks([(pending_info, "wato.py?mode=changelog")])
html.div('', class_="clear")
Module: check_mk
Branch: master
Commit: 14afd4e4f5cf985de4464d3f473d9b560d399fab
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14afd4e4f5cf98…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Mar 13 15:22:32 2019 +0100
6763 FIX if_brocade: Fixed missing graph templates and units for metrics
The graph definitions and units for metrics have been missing for interface
services of several brocade devices, if they use if_brocade instead of the
regular if64 check plugin. This is now fixed.
Change-Id: I71015d748a19a46ca3c591f63c66304f830542b8
---
.werks/6763 | 12 ++++++++++++
cmk/gui/plugins/metrics/check_mk.py | 1 +
2 files changed, 13 insertions(+)
diff --git a/.werks/6763 b/.werks/6763
new file mode 100644
index 0000000..131ead3
--- /dev/null
+++ b/.werks/6763
@@ -0,0 +1,12 @@
+Title: if_brocade: Fixed missing graph templates and units for metrics
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1552486810
+Class: fix
+
+The graph definitions and units for metrics have been missing for interface
+services of several brocade devices, if they use if_brocade instead of the
+regular if64 check plugin. This is now fixed.
diff --git a/cmk/gui/plugins/metrics/check_mk.py b/cmk/gui/plugins/metrics/check_mk.py
index 38c4f10..fc1755d 100644
--- a/cmk/gui/plugins/metrics/check_mk.py
+++ b/cmk/gui/plugins/metrics/check_mk.py
@@ -6120,6 +6120,7 @@ check_metrics["check_mk-if64adm"] = if_translation
check_metrics["check_mk-hpux_if"] = if_translation
check_metrics["check_mk-if64_tplink"] = if_translation
check_metrics["check_mk-if_lancom"] = if_translation
+check_metrics["check_mk-if_brocade"] = if_translation
check_metrics["check_mk-if"] = if_translation
check_metrics["check_mk-lnx_if"] = if_translation
check_metrics["check_mk-mcdata_fcport"] = if_translation