Module: check_mk
Branch: master
Commit: 40ca710aabe8166472846fa28555521a2c258d33
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=40ca710aabe816…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 7 14:06:51 2018 +0200
6553 FIX Fix "Error running .../MKEVENTD 'set' 'on'" error in
case of config errors during update
This error message could occur during the "omd update" procedure when the
configuration is
detected to have some issues. This message is now being suppressed while the
configuration
error is still be printed to the user.
Change-Id: I1b23ab20a1c94ff8979cdbc307b7ee85e141ea40
---
.werks/6553 | 13 +++++++++++++
omd/packages/check_mk/MKEVENTD.hook | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6553 b/.werks/6553
new file mode 100644
index 0000000..520ac2a
--- /dev/null
+++ b/.werks/6553
@@ -0,0 +1,13 @@
+Title: Fix "Error running .../MKEVENTD 'set' 'on'" error in
case of config errors during update
+Level: 1
+Component: core
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1536321907
+
+This error message could occur during the "omd update" procedure when the
configuration is
+detected to have some issues. This message is now being suppressed while the
configuration
+error is still be printed to the user.
diff --git a/omd/packages/check_mk/MKEVENTD.hook b/omd/packages/check_mk/MKEVENTD.hook
index fbc4521..4f5e759 100755
--- a/omd/packages/check_mk/MKEVENTD.hook
+++ b/omd/packages/check_mk/MKEVENTD.hook
@@ -26,6 +26,8 @@ case "$1" in
$OMD_ROOT/etc/check_mk/multisite.d/mkeventd.mk
echo -e "# Set by OMD hook MKEVENTD, do not change here!\nmkeventd_enabled =
$enabled" \
$OMD_ROOT/etc/check_mk/conf.d/mkeventd.mk
-
cmk -U >/dev/null 2>&1
+ # Try to update the core config to make the Microcore/Livestatus know whether or
not the
+ # Event Console is enabled. Totally ignore configuration validation errors here.
Be silent.
+ cmk -U >/dev/null 2>&1 || true
;;
esac