Module: check_mk
Branch: master
Commit: 7656b3cdf868a7d788d9351baa8fd3bede5f76c6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7656b3cdf868a7…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Jul 2 16:16:45 2018 +0200
Trial balloon: Disable spell checking to see if it speeds up pylint significantly.
Change-Id: I8b0396aaeda256e8e580a1c46b03fd6fb8b565fb
---
tests/pylint/pylintrc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 495eed1..78976b0 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -95,8 +95,9 @@ disable=
wildcard-import,
wrong-import-order,
wrong-import-position,
- wrong-spelling-in-comment,
- wrong-spelling-in-docstring,
+# Trial balloon: Disable spell checking to see if it speeds up pylint significantly.
+# wrong-spelling-in-comment,
+# wrong-spelling-in-docstring,
[TYPECHECK]
# rrdtool
@@ -129,10 +130,10 @@ additional-builtins=html,_,_u,current_language,HTML
# List of note tags to take in consideration, separated by a comma.
notes=FIXME,TODO
-[SPELLING]
-spelling-dict=en_US
+#[SPELLING]
+#spelling-dict=en_US
# List of comma separated words that should not be checked.
-spelling-ignore-words=
+#spelling-ignore-words=
# A path to a file that contains private dictionary; one word per line.
#spelling-private-dict-file=
# Tells whether to store unknown words to indicated private dictionary in
Module: check_mk
Branch: master
Commit: a2eb5c1ec298cbeee0e53789fb4482240eb60e14
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2eb5c1ec298cb…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Jul 2 15:35:51 2018 +0200
6014 FIX Fixed handling of expected regular messages
If expected regular messages did not arrive at the event console and the
resulting new event was not merged with a previous one, the EC could go into
an endless loop, logging Python exceptions all the time. This has been
fixed.
Change-Id: I2a307671f6476ef7e099d4cd3a8b90450a7e597a
---
.werks/6014 | 13 +++++++++++++
cmk/ec/main.py | 2 ++
2 files changed, 15 insertions(+)
diff --git a/.werks/6014 b/.werks/6014
new file mode 100644
index 0000000..7a56f46
--- /dev/null
+++ b/.werks/6014
@@ -0,0 +1,13 @@
+Title: Fixed handling of expected regular messages
+Level: 2
+Component: ec
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1530538326
+Class: fix
+
+If expected regular messages did not arrive at the event console and the
+resulting new event was not merged with a previous one, the EC could go into
+an endless loop, logging Python exceptions all the time. This has been
+fixed.
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index fcf02ea..583f63c 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -1293,6 +1293,8 @@ class EventServer(ECServerThread):
"facility": 1, # user
"match_groups": (),
"match_groups_syslog_application": (),
+ "core_host": "",
+ "host_in_downtime": False,
}
self._add_rule_contact_groups_to_event(rule, event)
self.rewrite_event(rule, event, {})
Module: check_mk
Branch: master
Commit: 5d4651827f780f89e022f34a59d76f05b1788ff3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5d4651827f780f…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jul 2 14:19:27 2018 +0200
Revert "6224 FIX Prevent multiple mkeventd's from being started in some situations"
This reverts commit c4fb0ca6804178c7064e11163d5cc564f1668788.
There is more to this issue, and the init script is likely innocent
---
.werks/6224 | 16 ----------------
omd/packages/check_mk/skel/etc/init.d/mkeventd | 3 +++
2 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/.werks/6224 b/.werks/6224
deleted file mode 100644
index 927f217..0000000
--- a/.werks/6224
+++ /dev/null
@@ -1,16 +0,0 @@
-Title: Prevent multiple mkeventd's from being started in some situations
-Level: 1
-Component: ec
-Class: fix
-Compatible: compat
-Edition: cre
-State: unknown
-Version: 1.6.0i1
-Date: 1530107013
-
-In rare circumstances, a non-responsive mkeventd process would stick
-around after an OMD restart, and the new one would not be aware of
-the other one's existance due to duplicated cleanup of the PID file
-in the Event Console's init script and the process itself respectively.
-
-We remove the cleanup in the init script, as it is more coarse.
diff --git a/omd/packages/check_mk/skel/etc/init.d/mkeventd b/omd/packages/check_mk/skel/etc/init.d/mkeventd
index 6395e27..e84279c 100755
--- a/omd/packages/check_mk/skel/etc/init.d/mkeventd
+++ b/omd/packages/check_mk/skel/etc/init.d/mkeventd
@@ -74,6 +74,9 @@ case "$1" in
exit 1
fi
done
+ else
+ # Remove the stale pidfile to have a clean state after this
+ rm $PIDFILE
fi
echo 'OK'
fi