Module: check_mk
Branch: master
Commit: 0fa7071feafd071dfa873da024fbff4b6ae6ee5d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fa7071feafd07…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 21 14:57:45 2019 +0100
Drop dead code
Change-Id: Id2d99a168b762d3699ba1f1ac4eb0a0b8bba49f8
---
cmk_base/ip_lookup.py | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/cmk_base/ip_lookup.py b/cmk_base/ip_lookup.py
index a841e4d..513e524 100644
--- a/cmk_base/ip_lookup.py
+++ b/cmk_base/ip_lookup.py
@@ -206,22 +206,6 @@ def _update_ip_lookup_cache(cache_id, ipa):
cmk.utils.store.release_lock(cache_path)
-# TODO: remove unused code?
-def _write_ip_lookup_cache():
- ip_lookup_cache = cmk_base.config_cache.get_dict("ip_lookup")
-
- cache_path = cmk.utils.paths.var_dir + '/ipaddresses.cache'
-
- # Read already known data
- data_from_file = cmk.utils.store.load_data_from_file(cache_path, default={}, lock=True)
- data_from_file.update(ip_lookup_cache)
- # The lock from the previous call is released in the following function
- # (I don't like this)
- # TODO: this file always grows... there should be a cleanup mechanism
- # maybe on "cmk --update-dns-cache"
- cmk.utils.store.save_data_to_file(cache_path, data_from_file, pretty=False)
-
-
def update_dns_cache():
# Temporarily disable *use* of cache, we want to force an update
# TODO: Cleanup this hacky config override! Better add some global flag
Module: check_mk
Branch: master
Commit: 3a43c8b18f3c5514de7f7e14e6a33f88af2463d3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3a43c8b18f3c55…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed Mar 20 13:03:17 2019 +0100
7219 FIX agent_vsphere: Missing data in case of mutliline snapshot description
In case a description of a VM snapshot consisted of multiple lines, no
data about the corresponding VM has been obtained.
Change-Id: Ia493747d27a2f368fb3df005bb02acfb06821533
---
.werks/7219 | 12 ++++++++++++
agents/special/agent_vsphere | 5 +----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/.werks/7219 b/.werks/7219
new file mode 100644
index 0000000..f6a015f
--- /dev/null
+++ b/.werks/7219
@@ -0,0 +1,12 @@
+Title: agent_vsphere: Missing data in case of mutliline snapshot description
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1553083211
+
+In case a description of a VM snapshot consisted of multiple lines, no
+data about the corresponding VM has been obtained.
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 68e9e94..81a5c8c 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -906,10 +906,7 @@ def create_search_pattern(tokens):
def get_pattern(pattern, line):
- if not line:
- return []
- p = re.compile(pattern, re.MULTILINE)
- return p.findall(line)
+ return re.findall(pattern, line, re.DOTALL) if line else []
# TODO: Refactor to requests
Module: check_mk
Branch: master
Commit: e62bd36bec6447f6d931e490311f122fa486e74d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e62bd36bec6447…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 21 12:34:29 2019 +0100
7325 FIX check_bi_aggr: Improve GUI application error handling
When the webservice detects an error -- such as an authentication problem -- it
does not output the expected data structure, but a string starting with
"ERROR:". This is now correctly being detected and the error is output as check
output, rather than a nasty parsing exception.
Change-Id: I123e3391afb768a2a9ba1f58d261f612d9d34546
---
.werks/7325 | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.werks/7325 b/.werks/7325
new file mode 100644
index 0000000..1daff11
--- /dev/null
+++ b/.werks/7325
@@ -0,0 +1,14 @@
+Title: check_bi_aggr: Improve GUI application error handling
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1553167995
+Class: fix
+
+When the webservice detects an error -- such as an authentication problem -- it
+does not output the expected data structure, but a string starting with
+"ERROR:". This is now correctly being detected and the error is output as check
+output, rather than a nasty parsing exception.
+