Module: check_mk
Branch: master
Commit: ac36912b6bb18ae75c8837f532104ed93a5cd06e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ac36912b6bb18a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 19 07:58:26 2018 +0100
5736 FIX Show even empty custom graphs in sidebar view snapin
Change-Id: Ia3b140fbadf80ad0cfca4aa130f1ffcfef30b1a7
---
.bugs/2845 | 6 ++++--
.werks/5736 | 10 ++++++++++
web/htdocs/pagetypes.py | 7 ++++++-
3 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/.bugs/2845 b/.bugs/2845
index f91ab28..81da7e1 100644
--- a/.bugs/2845
+++ b/.bugs/2845
@@ -1,10 +1,12 @@
Title: Empty custom graphs should be shown in sidebar nevertheless
Component: metrics
-State: open
+Class: nastiness
+State: done
Date: 2017-02-21 10:46:23
Targetversion: 1.2.8
-Class: nastiness
It seems to be a "feature" that empty custom graphs are never shown in the
sidebar - regardless of the checkbox "do not show in sidebar". This is
confusing to users. Better treat empty graphs like nonempty-graphs.
+
+2018-02-19 07:57:29: changed state open -> done
diff --git a/.werks/5736 b/.werks/5736
new file mode 100644
index 0000000..8fe151f
--- /dev/null
+++ b/.werks/5736
@@ -0,0 +1,10 @@
+Title: Show even empty custom graphs in sidebar view snapin
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i3
+Date: 1519023460
+Class: fix
+
+
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index fd0b7a0..de0bc4f 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -189,6 +189,11 @@ class Base(object):
def is_empty(self):
return False
+
+ def _show_in_sidebar(self):
+ return not self.is_empty() and not self.is_hidden()
+
+
# Default values for the creation dialog can be overridden by the
# sub class.
@classmethod
@@ -375,7 +380,7 @@ class PageRenderer(Base):
@classmethod
def sidebar_links(cls):
for page in cls.pages():
- if not page.is_empty() and not page.is_hidden():
+ if page._show_in_sidebar():
yield page.topic(), page.title(), page.page_url()
Module: check_mk
Branch: master
Commit: f2b015c9bbc922678d347b11049649efdd42366e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f2b015c9bbc922…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Fri Feb 16 11:38:12 2018 +0100
Add werk 5781
Change-Id: Icec30a45e74fb483a898b0f776156e981019f689
---
.werks/5781 | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.werks/5781 b/.werks/5781
new file mode 100644
index 0000000..eb50b78
--- /dev/null
+++ b/.werks/5781
@@ -0,0 +1,16 @@
+Title: Check_MK Update Agent: Now automatically repairs missing agent plugins after a failed windows agent update
+Level: 2
+Component: agents
+Compatible: compat
+Edition: cee
+Version: 1.5.0i3
+Date: 1518711069
+Class: fix
+
+On some occassions, the windows agent may loose its agent plugins during an msi update.
+This issue is still being investigated. In the meantime, the cmk-update-agent.exe is now able to detect
+a failed installation and tries to repair the missing plugin files.
+
+Keep in mind that this workaround is only available -after- the next agent update, so the initial rollout
+of this update may still fail, since it is done by an earlier version of the agent updater.
+
Module: check_mk
Branch: master
Commit: 42f4813a30fcf3f17897d601cf335d4cc094d3c6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42f4813a30fcf3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 20 15:22:18 2018 +0100
Resetting check config variable structure before loading the checks
Change-Id: I1a47cd0f8cee18598f503539c8fd3ced82cec9e0
---
cmk_base/checks.py | 3 +++
tests/cmk_base/test_checks.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk_base/checks.py b/cmk_base/checks.py
index 12668b6..dcdda9e 100644
--- a/cmk_base/checks.py
+++ b/cmk_base/checks.py
@@ -103,6 +103,9 @@ def get_plugin_paths(*dirs):
# If a check or check.include is both found in local/ and in the
# normal structure, then only the file in local/ must be read!
def load_checks(filelist):
+ # Initialize some data structures which are populated while loading the checks
+ _check_variables.clear()
+
loaded_files = set()
check_variable_defaults = {}
ignored_variable_types = [ type(lambda: None), type(os) ]
diff --git a/tests/cmk_base/test_checks.py b/tests/cmk_base/test_checks.py
index fca7e8d..731befa 100644
--- a/tests/cmk_base/test_checks.py
+++ b/tests/cmk_base/test_checks.py
@@ -206,7 +206,7 @@ check_info["test_check_2"] = {
# Test whether or not factory settings and checkgroup parameters work
-def test_test_check_factory_settings(request, test_cfg, site, web):
+def test_check_factory_settings(request, test_cfg, site, web):
test_check_path = "local/share/check_mk/checks/test_check_3"
def cleanup():