Module: check_mk
Branch: master
Commit: 21f049d809ef451b62f436a12d1637c3c8536758
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=21f049d809ef45…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 13:13:41 2018 +0100
5883 FIX Fixed broken conversion of customized agent tag group (Regression #5257)
Change-Id: I031f09d574e915bbd3ecd963d4d912b21bb4fd06
---
.werks/5883 | 10 ++++++++++
web/htdocs/watolib.py | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/.werks/5883 b/.werks/5883
new file mode 100644
index 0000000..6289fb4
--- /dev/null
+++ b/.werks/5883
@@ -0,0 +1,10 @@
+Title: Fixed broken conversion of customized agent tag group (Regression #5257)
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1520251998
+Class: fix
+
+
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 3bdaa27..7bfa980 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6152,6 +6152,16 @@ def configured_aux_tags():
def is_builtin_host_tag_group(tag_group_id):
+ # Special handling for the agent tag group. It was a tag group created with
+ # the sample WATO configuration until version 1.5x. This means users could've
+ # customized the group. In case we find such a customization we treat it as
+ # not builtin tag group.
+ if tag_group_id == "agent":
+ for tag_group in config.wato_host_tags:
+ if tag_group[0] == tag_group_id:
+ return False
+ return True
+
for tag_group in builtin_host_tags:
if tag_group[0] == tag_group_id:
return True
Module: check_mk
Branch: master
Commit: 7466ee8b8038b1e3ec35e6f4cd1fe4be8b9f4967
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7466ee8b8038b1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 13:19:36 2018 +0100
5884 FIX Fixed host tag removal confirm dialog (1.5 regression)
Change-Id: I7229d0cd23a54a21a361399858933e46185bdae4
---
.werks/5883 | 3 ++-
.werks/5884 | 10 ++++++++++
web/htdocs/wato.py | 2 +-
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.werks/5883 b/.werks/5883
index 6289fb4..a559c89 100644
--- a/.werks/5883
+++ b/.werks/5883
@@ -7,4 +7,5 @@ Version: 1.5.0i4
Date: 1520251998
Class: fix
-
+The customized agent tag group was handled as internal tag group. For this reason
+the user could not "uncustomize" it.
diff --git a/.werks/5884 b/.werks/5884
new file mode 100644
index 0000000..a7db028
--- /dev/null
+++ b/.werks/5884
@@ -0,0 +1,10 @@
+Title: Fixed host tag removal confirm dialog (1.5 regression)
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1520252363
+Class: fix
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 47e29c4..b0bb1a0 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11819,7 +11819,7 @@ class ModeHostTags(WatoMode, watolib.HosttagsConfiguration):
del_id = html.var("_delete")
if del_id:
operations = None
- for e in self.tag_groups:
+ for e in self._hosttags:
if e[0] == del_id:
# In case of tag group deletion, the operations is a pair of tag_id
# and list of choice-ids.
Module: check_mk
Branch: master
Commit: ba179bd45cf091c266214f907b999034bb09f7fe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba179bd45cf091…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Mar 5 12:57:52 2018 +0100
5710 FIX jolokia_generic.string: Fix broken parameter handling
Previously, any strings against which to match would be ignored. This has been fixed.
Thanks to Alexander Hotz for the patch!
Change-Id: I397eceeb113ce83904fca4f5e84b8776fbdbf017
---
.werks/5710 | 13 +++++++++++++
checks/jolokia_generic | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/5710 b/.werks/5710
new file mode 100644
index 0000000..2f008d5
--- /dev/null
+++ b/.werks/5710
@@ -0,0 +1,13 @@
+Title: jolokia_generic.string: Fix broken parameter handling
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i4
+Date: 1520250977
+
+Previously, any strings against which to match would be ignored. This has been fixed.
+
+Thanks to Alexander Hotz for the patch!
diff --git a/checks/jolokia_generic b/checks/jolokia_generic
index bf39f21..fdccfbe 100644
--- a/checks/jolokia_generic
+++ b/checks/jolokia_generic
@@ -64,7 +64,7 @@ def check_jolokia_generic_string(item, params, parsed):
value = parsed[item]["value"]
default_status = params.get("default_status", 0)
- search_strings = params.get("search_strings", [])
+ search_strings = params.get("match_strings", [])
for search_string, status in search_strings:
if search_string in value:
return status, "%s: %s matches" % (value, search_string)
Module: check_mk
Branch: master
Commit: 265aa8d901502bd768bb5080db72277817f9fa16
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=265aa8d901502b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 12:42:10 2018 +0100
5882 FIX Agent bakery host selection was showing wrong settings after saving
On the configuration page of the Automatic agent updates, there is a condition
configuration. When saving new conditions, for example host tag conditions, these
conditions were not shown correctly on the page right after saving. When browsing
away and opening the page again, the correct settings were shown.
Change-Id: I58088840fac31c46aace3af9d054320e9a9f8d48
---
.werks/5882 | 14 ++++++++++++++
web/htdocs/valuespec.py | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/5882 b/.werks/5882
new file mode 100644
index 0000000..6d423eb
--- /dev/null
+++ b/.werks/5882
@@ -0,0 +1,14 @@
+Title: Agent bakery host selection was showing wrong settings after saving
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i4
+Date: 1520249710
+
+On the configuration page of the Automatic agent updates, there is a condition
+configuration. When saving new conditions, for example host tag conditions, these
+conditions were not shown correctly on the page right after saving. When browsing
+away and opening the page again, the correct settings were shown.
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 0c4f76b..6472fd7 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -3428,7 +3428,7 @@ class Dictionary(ValueSpec):
if self._columns == 2:
label += ":"
colon_printed = True
- html.checkbox("%s_USE" % vp, param in value, label=label,
+ html.checkbox("%s_USE" % vp, visible, label=label,
onclick="valuespec_toggle_option(this, %r)" % div_id)
else:
visible = True