Module: check_mk
Branch: master
Commit: d67255af1c25249a77b098f9f043fc39195ff7c6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d67255af1c2524…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 11 13:37:45 2018 +0200
5971 FIX docker_node_disk_usage: Fix "No JSON object could be decoded" exception with older docker versions
When the new agent is executed on a docker nodes that does not yet support the "docker system df" command
with the "--format" parameter, then the check crashed. The agent has now been fixed to not transport the
error message to the Check_MK server.
Change-Id: Iea883794b090191f3a273647c6dae40996475cb7
---
.werks/5971 | 13 +++++++++++++
agents/check_mk_agent.linux | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/5971 b/.werks/5971
new file mode 100644
index 0000000..68cbde1
--- /dev/null
+++ b/.werks/5971
@@ -0,0 +1,13 @@
+Title: docker_node_disk_usage: Fix "No JSON object could be decoded" exception with older docker versions
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1523446569
+
+When the new agent is executed on a docker nodes that does not yet support the "docker system df" command
+with the "--format" parameter, then the check crashed. The agent has now been fixed to not transport the
+error message to the Check_MK server.
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 94e974d..5011234 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -968,7 +968,7 @@ if type docker > /dev/null 2>&1 ; then
docker info --format "{{json .}}" 2>&1
echo "<<<docker_node_disk_usage:sep(44)>>>"
- docker system df --format "{{json .}}" 2>&1
+ docker system df --format "{{json .}}"
echo "<<<docker_node_images>>>"
echo "[[[images]]]"
Module: check_mk
Branch: master
Commit: 6614fe83353660e70d3a8eaa2d4c4a91b6c63e44
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6614fe83353660…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 11 10:14:26 2018 +0200
5969 FIX Fixed possible "params" exception when editing sites after update
When trying to edit an existing site configuration a "params" exception
could occur. This happened when at least one configured site is configured
to use the livestatus proxy.
Change-Id: I9369527f905e238c6a422f1667f2825eb7693f28
---
.werks/5969 | 13 ++++++++++++
web/htdocs/watolib.py | 58 ++++++++++++++++++++++++++-------------------------
2 files changed, 43 insertions(+), 28 deletions(-)
diff --git a/.werks/5969 b/.werks/5969
new file mode 100644
index 0000000..c769922
--- /dev/null
+++ b/.werks/5969
@@ -0,0 +1,13 @@
+Title: Fixed possible "params" exception when editing sites after update
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0b2
+Date: 1523434352
+
+When trying to edit an existing site configuration a "params" exception
+could occur. This happened when at least one configured site is configured
+to use the livestatus proxy.
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 6c895f9..aef3b35 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -3964,34 +3964,30 @@ class CRESiteManagement(object):
@classmethod
def load_sites(cls):
- try:
- if not os.path.exists(sites_mk):
- return config.default_single_site_configuration()
-
- vars = { "sites" : {} }
- execfile(sites_mk, vars, vars)
-
- # Be compatible to old "disabled" value in socket attribute.
- # Can be removed one day.
- for site in vars['sites'].values():
- if site.get('socket') == 'disabled':
- site['disabled'] = True
- del site['socket']
-
- if not vars["sites"]:
- # There seem to be installations out there which have a sites.mk
- # which has an empty sites dictionary. Apply the default configuration
- # for these sites too.
- return config.default_single_site_configuration()
- else:
- return vars["sites"]
-
-
- except Exception, e:
- if config.debug:
- raise MKGeneralException(_("Cannot read configuration file %s: %s") %
- (sites_mk, e))
- return {}
+ if not os.path.exists(sites_mk):
+ return config.default_single_site_configuration()
+
+ vars = { "sites" : {} }
+ execfile(sites_mk, vars, vars)
+
+ # Be compatible to old "disabled" value in socket attribute.
+ # Can be removed one day.
+ for site_id, site in vars['sites'].items():
+ socket = site.get("socket")
+ if socket == 'disabled':
+ site['disabled'] = True
+ del site['socket']
+
+ elif type(socket) == tuple and socket[0] == "proxy":
+ site["socket"] = ("proxy", cls.transform_old_connection_params(socket[1]))
+
+ if not vars["sites"]:
+ # There seem to be installations out there which have a sites.mk
+ # which has an empty sites dictionary. Apply the default configuration
+ # for these sites too.
+ return config.default_single_site_configuration()
+ else:
+ return vars["sites"]
@classmethod
@@ -4051,6 +4047,12 @@ class CRESiteManagement(object):
return [ConfigDomainGUI]
+ @classmethod
+ def transform_old_connection_params(cls, value):
+ return value
+
+
+
SiteManagement = CRESiteManagement
Module: check_mk
Branch: master
Commit: ec3196817b283b9dc814796005278d873dafb9b8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ec3196817b283b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Apr 3 09:48:27 2018 +0200
5934 Service Discovery: Permissions for moving services can be assigned to user role
The service discovery dialog shows different action buttons of
the single service tables. For each action button permissions can
be assigned to user role. These actions are
- Move to undecided services
- Move to monitored services
- Move to ignored services
- Move to removed services
Change-Id: I819ef935e8b65b7afaa4e73f210356a87543dd56
---
.werks/5934 | 29 +++++++++++++++
web/htdocs/wato.py | 106 ++++++++++++++++++++++++++++++++++++++---------------
2 files changed, 106 insertions(+), 29 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=ec3196817b…
Module: check_mk
Branch: master
Commit: 195b809bbcbcf8467310e1cbb967f0b5bd179358
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=195b809bbcbcf8…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Apr 11 08:32:49 2018 +0200
5834 FIX Fixed SNMPv3 credential handling in the event console.
Although it is not really useful, the list of engine IDs, for which a given
set of credential parameters should be used, can be empty. Previously this
lead to a traceback in the EC log and missing credentials for SNMP traps.
This has been fixed.
Another bug was in the handling of the noAuthNoPriv security level, where
the wrong user name was used. This, too, has been fixed.
Change-Id: If3a83a2b34e1cb8f22d95de92618bb826809745f
---
.werks/5834 | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/.werks/5834 b/.werks/5834
new file mode 100644
index 0000000..bfb47aa
--- /dev/null
+++ b/.werks/5834
@@ -0,0 +1,16 @@
+Title: Fixed SNMPv3 credential handling in the event console.
+Level: 1
+Component: ec
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1523427930
+Class: fix
+
+Although it is not really useful, the list of engine IDs, for which a given
+set of credential parameters should be used, can be empty. Previously this
+lead to a traceback in the EC log and missing credentials for SNMP traps.
+This has been fixed.
+
+Another bug was in the handling of the noAuthNoPriv security level, where
+the wrong user name was used. This, too, has been fixed.