Module: check_mk
Branch: master
Commit: 9775f85854ee596c609b591fb7dc15387fc6412a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9775f85854ee59…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Sep 13 13:57:28 2017 +0200
5189 FIX Fixed scheduling of checks after a start/reload of the Micro Core
After a start/reload the Check_MK Micro Core did not always schedule checks
early enough to avoid their staleness, which was especially visible for
checks with a long check interval, e.g. discovery or HW/SW inventory. This
has been fixed.
Change-Id: Idf8505595b95fa2c48a1a523fc4544c08d7b138f
---
.werks/5189 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.werks/5189 b/.werks/5189
new file mode 100644
index 0000000..df595e4
--- /dev/null
+++ b/.werks/5189
@@ -0,0 +1,14 @@
+Title: Fixed scheduling of checks after a start/reload of the Micro Core
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i1
+Date: 1505303429
+
+After a start/reload the Check_MK Micro Core did not always schedule checks
+early enough to avoid their staleness, which was especially visible for
+checks with a long check interval, e.g. discovery or HW/SW inventory. This
+has been fixed.
Module: check_mk
Branch: master
Commit: b7d113e19eb97c3460de2ba6a26d68ba5c95496f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b7d113e19eb97c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 13 13:37:30 2017 +0200
Fixed wrong issue with new default deprecated ruleset exclusion
Change-Id: I3f7f1c4160e7cc095fb77ce53e928c5e845c5ab9
---
web/htdocs/wato.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index c1511d7..8d61fe3 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12378,7 +12378,7 @@ class ModeRulesets(WatoMode):
# Explicitly hide deprecated rulesets by default
if not html.has_var("search_p_ruleset_deprecated"):
- html.set_var("search_p_ruleset_deprecated", "1"),
+ html.set_var("search_p_ruleset_deprecated", DropdownChoice.option_id(False)),
html.set_var("search_p_ruleset_deprecated_USE", "on")
# Transform group argument to the "rule search arguments"
@@ -12553,11 +12553,13 @@ def rule_search_button(search_options=None, mode="rulesets"):
# Don't highlight the button on "standard page" searches. Meaning the page calls
# that are no searches from the users point of view because he did not fill the
# search form, but clicked a link in the GUI
- if search_options and (search_options.keys() == ["ruleset_group"]
- or search_options.keys() == ["ruleset_deprecated"]
- or search_options.keys() == ["rule_ineffective"]
- or search_options.keys() == ["ruleset_used"]):
- is_searching = False
+ if is_searching:
+ search_keys = sorted(search_options.keys())
+ if search_keys == ["ruleset_deprecated", "ruleset_group"] \
+ or search_keys == ["ruleset_deprecated"] \
+ or search_keys == ["rule_ineffective"] \
+ or search_keys == ["ruleset_used"]:
+ is_searching = False
if is_searching:
title = _("Refine search")