Module: check_mk
Branch: master
Commit: 3f18764d94a5f196b802a602c4f15051ccd9131e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3f18764d94a5f1…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Tue Dec 12 08:06:04 2017 +0100
Add werk 5265
Change-Id: I42aa846042ba3fb4e63be243302eef2244c46e33
---
.werks/5265 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/.werks/5265 b/.werks/5265
new file mode 100644
index 0000000..d4370e1
--- /dev/null
+++ b/.werks/5265
@@ -0,0 +1,15 @@
+Title: cmk-update-agent: Enable Agent Updater to update itself on Windows
+Level: 2
+Component: agents
+Compatible: compat
+Edition: cee
+Version: 1.5.0i2
+Date: 1512997920
+Class: fix
+
+When triggering an update under Windows, the agent updater could not be replaced by its new downloaded version because it was still running from the corresponding file.
+
+This situation is now mitigated by restarting the agent updater from within ../temp when running from plugins-dir.
+
+This is relevant only for a manual execution of cmk-update-agent.exe
+
Module: check_mk
Branch: master
Commit: b1845408530d2f55ef230661b3d7832a7608ac67
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b1845408530d2f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Dec 14 13:59:44 2017 +0100
5473 FIX Add correct host-related acknowledgement info to notifications.
When a notification for a service was constructed, the HOSTACKAUTHOR and
HOSTACKCOMMENT variables were incorrectly filled with service-related
information. This has been fixed.
Change-Id: Ic52bd237897a0ee517b631a25b59d86980794ea9
---
.werks/5473 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.werks/5473 b/.werks/5473
new file mode 100644
index 0000000..6c1b581
--- /dev/null
+++ b/.werks/5473
@@ -0,0 +1,12 @@
+Title: Add correct host-related acknowledgement info to notifications.
+Level: 1
+Component: cmc
+Compatible: compat
+Edition: cee
+Version: 1.5.0i2
+Date: 1513256289
+Class: fix
+
+When a notification for a service was constructed, the HOSTACKAUTHOR and
+HOSTACKCOMMENT variables were incorrectly filled with service-related
+information. This has been fixed.
Module: check_mk
Branch: master
Commit: fe6fe17789cc6937989bf0cfb55c4b523eea7990
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe6fe17789cc69…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Dec 14 13:42:35 2017 +0100
5472 FIX Ensure correct quoting of values in event contexts.
The values of custom host/service variables and acknowledgement comments
were not correctly quoted when being passed to the alert/notification
helpers. Therefore, some special characters could have been mishandled,
this has been fixed.
Change-Id: I48799e953fca738bbc81957821ba03af7134dea5
---
.werks/5472 | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.werks/5472 b/.werks/5472
new file mode 100644
index 0000000..58ec040
--- /dev/null
+++ b/.werks/5472
@@ -0,0 +1,13 @@
+Title: Ensure correct quoting of values in event contexts.
+Level: 1
+Component: cmc
+Compatible: compat
+Edition: cee
+Version: 1.5.0i2
+Date: 1513255154
+Class: fix
+
+The values of custom host/service variables and acknowledgement comments
+were not correctly quoted when being passed to the alert/notification
+helpers. Therefore, some special characters could have been mishandled,
+this has been fixed.
Module: check_mk
Branch: master
Commit: c3f45875d283485d3c8a768765a90ec8ff086182
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c3f45875d28348…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Dec 12 16:30:04 2017 +0100
Added decorator to cmk.profile
Change-Id: Ia81323e0c212baf2052df7729ad38cab6ad1733d
---
lib/profile.py | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/lib/profile.py b/lib/profile.py
index f01b479..2ed4173 100644
--- a/lib/profile.py
+++ b/lib/profile.py
@@ -31,7 +31,7 @@ minimal changes."""
import cProfile
import contextlib
import os
-
+import time
import cmk.log
@@ -71,3 +71,26 @@ class Profile(object):
"stats.sort_stats('time').print_stats()\n" % self._profile_file)
os.chmod(self._profile_file + ".py", 0o755)
cmk.log.logger.info("Created profile dump script: %s.py" % self._profile_file)
+
+
+def profile_call(base_dir, enabled=True):
+ """
+This decorator can be used to profile single functions as a starting point.
+A directory where the file will be saved has to be stated as first argument.
+Enabling/disabling as second argument is optional. By default it's enabled.
+The name of the output file is composed of the function name itself,
+the timestamp when the function was called and the suffix '.profile'.
+Examples:
+ @cmk.profile.profile_call(base_dir="/PATH/TO/DIR")
+ @cmk.profile.profile_call(base_dir="/PATH/TO/DIR", enabled=True)
+ @cmk.profile.profile_call(base_dir="/PATH/TO/DIR", enabled=False)
+"""
+ def decorate(f):
+ def wrapper(*args, **kwargs):
+ filepath = "%s/%s_%s.profile" % \
+ (base_dir.rstip("/"), f.__name__, time.time())
+ with Profile(enabled=enabled,
+ profile_file=filepath):
+ return f(*args, **kwargs)
+ return wrapper
+ return decorate
Module: check_mk
Branch: master
Commit: d6c497c6697d4c3d8e362a8ef9a39104655ed571
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6c497c6697d4c…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Nov 16 11:25:13 2017 +0100
5254 Event console: Introduced syslog application placeholder which can be used in rewriting events
When rewriting text, hostname or application for an event you can now use the new placeholders
Message text regex match groups
<ul>
<li>MATCH_GROUPS_MESSAGE_1</li>
<li>MATCH_GROUPS_MESSAGE_2</li>
<li>MATCH_GROUPS_MESSAGE_n</li>
</ul>
Syslog application regex match groups
<ul>
<li>MATCH_GROUPS_SYSLOG_APPLICATION_1</li>
<li>MATCH_GROUPS_SYSLOG_APPLICATION_2</li>
<li>MATCH_GROUPS_SYSLOG_APPLICATION_n</li>
</ul>
Note:
The syslog application match groups are now also considered when canceling events.
The previous version did only check for identical create/canceling match groups in the event message text.
Change-Id: Iad038310001363f7dff0e88fa46c5db559da1340
---
.werks/5254 | 32 +++++
bin/mkeventd | 332 ++++++++++++++++++++++++++++++++-----------
web/plugins/wato/mkeventd.py | 12 +-
3 files changed, 291 insertions(+), 85 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d6c497c669…