Module: check_mk
Branch: master
Commit: 0b40386b90b36b244ab60a05487e57bfa65aef8e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b40386b90b36b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 22 11:03:50 2018 +0100
Improved "omd config" CORE description text
Change-Id: If345b67ed31410ac5cb7e3796d6f0f59628c56fc
---
omd/packages/omd/CORE.hook | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/omd/packages/omd/CORE.hook b/omd/packages/omd/CORE.hook
index 9b488d9..2681e0e 100755
--- a/omd/packages/omd/CORE.hook
+++ b/omd/packages/omd/CORE.hook
@@ -3,11 +3,10 @@
# Alias: Monitoring core
# Menu: Basic
# Description:
-# Here you can choose your monitoring core to run. Currently available
-# are Nagios and Shinken. You also can decide to run no monitoring core in
-# this instance. This can be useful for instances running a GUI such
-# as Check_MK Multisite or Thruk which can connect to other monitoring
-# sites via Livestatus.
+# Here you can choose your monitoring core to run. You also can decide
+# to run no monitoring core in this instance. This can be useful for
+# instances running a GUI only site which can connect to other
+# monitoring sites via Livestatus.
# Helper function that creates a symlink only if the
# target of the link exists
Module: check_mk
Branch: master
Commit: 407e32c12ed4c838ea7e581f69cf489287941a09
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=407e32c12ed4c8…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Thu Nov 22 15:01:32 2018 +0100
deb-changelog, deb-environment and check-edition trigger unneccesarry builds, since they are phony targets.
EDITION is set by defines.make. Therefore check-edition was removed.
deb-changelog creates debian/changelog which is a file. This is also the only point where deb-environment was used. Therefor both targets were put together in the target "debian/changelog".
Change-Id: Ied3a7dfeac8ed0cccc77e6fdb81db7ca8d68cb18
---
omd/Makefile | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/omd/Makefile b/omd/Makefile
index 512334b..fd49c5d 100644
--- a/omd/Makefile
+++ b/omd/Makefile
@@ -83,19 +83,14 @@ PRE_CMA := $(BUILD_HELPER_DIR)/pre-cma
.PHONY: install-global
-check-edition:
- @if [ -z "$(EDITION)" ]; then \
- echo "FEHLER: Du musst eine Edition angeben! (EDITION=raw|enterprise|managed)" ; \
- exit 1 ; \
- fi
-
-build: check-edition $(PACKAGES)
+build: $(PACKAGES)
pack: skel
#TODO: Define dependecies here correctly...
-$(PRE_INSTALL): check-edition
+$(PRE_INSTALL):
rm -rf $(DESTDIR)
+ rm -rf $(BUILD_HELPER_DIR)/*-install
mkdir -p $(DESTDIR)$(OMD_PHYSICAL_BASE)
A="$(OMD_PHYSICAL_BASE)" ; ln -s $${A:1} $(DESTDIR)/omd
touch $@
@@ -215,7 +210,7 @@ install-global: install
fi
-rpm: check-edition
+rpm:
PKG_VERSION=$(OMD_VERSION) ; \
PKG_VERSION=$${PKG_VERSION/.cee/} ; \
PKG_VERSION=$${PKG_VERSION/.cre/} ; \
@@ -247,16 +242,15 @@ rpm: check-edition
mv -v $(RPM_TOPDIR)/SRPMS/*.src.rpm $(REPO_PATH)
rm -rf $(RPM_TOPDIR) rpm.buildroot
-# Build DEB from prebuild binary. This currently needs 'make dist' and thus only
-# works within a GIT repository.
-deb-environment:
+
+# create a debian/changelog to build the package
+debian/changelog:
+ # Build DEB from prebuild binary. This currently needs 'make dist' and thus only
+ # works within a GIT repository.
@if test -z "$(DEBFULLNAME)" || test -z "$(DEBEMAIL)"; then \
echo "please read 'man dch' and set DEBFULLNAME and DEBEMAIL" ;\
exit 1; \
fi
-
-# create a debian/changelog to build the package
-deb-changelog: deb-environment
# this is a hack!
rm -f debian/changelog
PKG_VERSION=$(OMD_VERSION) ; \
@@ -267,7 +261,7 @@ deb-changelog: deb-environment
--newversion 0.$(DISTRO_CODE) "`cat debian/changelog.tmpl`"
dch --release "releasing ...."
-deb: check-edition deb-changelog
+deb: debian/changelog
PKG_VERSION=$(OMD_VERSION) ; \
PKG_VERSION=$${PKG_VERSION/.cee/} ; \
PKG_VERSION=$${PKG_VERSION/.cre/} ; \
@@ -322,7 +316,7 @@ setversion:
test:
t/test_all.sh
-$(PRE_CMA): check-edition
+$(PRE_CMA):
# make the cmc the default core
sed -i 's/default)/default) echo "cmc"; exit;/g' packages/omd/CORE.hook
# enable the event console by default
Module: check_mk
Branch: master
Commit: 62f5cdb8414391a5d409d103ca6307a8a15fad16
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=62f5cdb8414391…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 23 10:45:48 2018 +0100
Testcommit
Change-Id: I6398aebd1c067af4fc4de00a3eadfd7fda86c9f4
---
README | 1 +
1 file changed, 1 insertion(+)
diff --git a/README b/README
index 7d8bee1..fcd7e67 100644
--- a/README
+++ b/README
@@ -54,3 +54,4 @@ To create a DEB package execute this:
Don't forget to insert your name and mail address. As a result your should
find packages named like this: check-mk-[edition]-[version].[deb|rpm] in
your current directory.
+
Module: check_mk
Branch: master
Commit: dc2cfc45e3d080a8995bae1baa866cef02f25938
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc2cfc45e3d080…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 23 10:41:34 2018 +0100
Fixed dictionary element evaluation during initialization
The Dictionary() valuespec elements can either be a list of elements
or a function reference which is meant to generate the elements on
demand in the moment they are needed instead of the construction time
of the valuespec.
There are attributes optional_keys and required_keys which tell the
Dictionary() valuespec how to handle the single elements.
There are multiple ways to tell the object that none of the elements
is optional. It can be done by either setting it to None, False or
an empty list.
And here comes the bug: When the "optional_keys" attribute was set to an
empty list, the element generation function was called while it wasn't
needed to call it.
In many situations this is not a real problem because mostly the element
function is cheap. But we had a situation where the element function
initialized livestatus connections to all sites during the program
initialization phase where such things should not be done.
Change-Id: I33b4a80aa9ebcf587702f8e1633cbc833c127503
---
cmk/gui/valuespec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk/gui/valuespec.py b/cmk/gui/valuespec.py
index 977116e..e2ab59c 100644
--- a/cmk/gui/valuespec.py
+++ b/cmk/gui/valuespec.py
@@ -3482,7 +3482,7 @@ class Dictionary(ValueSpec):
self._default_keys = kwargs.get("default_keys", []) # keys present in default value
if "optional_keys" in kwargs:
ok = kwargs["optional_keys"]
- if isinstance(ok, list):
+ if isinstance(ok, list) and ok:
self._required_keys = \
[ e[0] for e in self._get_elements() if e[0] not in ok ]
self._optional_keys = True
Module: check_mk
Branch: master
Commit: eba35c3850fee09a307b5524fb4a971337d3f6a3
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eba35c3850fee0…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Thu Nov 22 08:29:52 2018 +0100
FEED-3061: Fix sxs-issue with windows agent updater build
In order to work correctly on even very old windows systems
(XP etc.), we have to include the VC++ CRT Libraries within
the frozen binary. Previously, we chose a newer version than
that required by python.exe and got it automagically referenced in
the application's manifest by PyInstaller by applying a sxs polixy.
However, it turned out that this does not work any longer since
Wine 3, so we now provide the (older) CRT version that is requested
by python.exe's manifest directly.
Change-Id: I28b8c0feac117abddae828568d4399bb121efe18
---
.../windows/frozen_binaries/pyinstaller-deps.make | 2 +-
.../windows/frozen_binaries/src/vcredist_x86.exe | Bin 4479832 -> 1821192 bytes
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/frozen_binaries/pyinstaller-deps.make b/agents/windows/frozen_binaries/pyinstaller-deps.make
index 3ec18b1..f6203ad 100644
--- a/agents/windows/frozen_binaries/pyinstaller-deps.make
+++ b/agents/windows/frozen_binaries/pyinstaller-deps.make
@@ -156,7 +156,7 @@ download_python:
download_vcredist:
mkdir -p $(SRC_DIR) && \
cd $(SRC_DIR) && \
- curl -O https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966…
+ curl -O https://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b…
download_sources: download_python download_packages download_vcredist
diff --git a/agents/windows/frozen_binaries/src/vcredist_x86.exe b/agents/windows/frozen_binaries/src/vcredist_x86.exe
index 4170330..b8a3da8 100644
Binary files a/agents/windows/frozen_binaries/src/vcredist_x86.exe and b/agents/windows/frozen_binaries/src/vcredist_x86.exe differ
Module: check_mk
Branch: master
Commit: ccbaf7cdf0a48997fcdc1d08029ae7fa03f2a5ef
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ccbaf7cdf0a489…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Thu Nov 22 12:23:24 2018 +0100
6931 FIX cmk-update-agent.exe: Fix problem with missing Runtime Library
Regression since 1.4.0p37 and 1.5.0
On some older Windows Systems and on Systems without a VC++ Runtime Library 2008 (or newer)
installed, the cmk-update-agent.exe may crash, showing an error like <code>Error loading Python DLL</code>.
We intend to ship a correct version of the needed runtime library within the executable, but this mechanism
got broken, caused by a sublte change in our build system.
With this werk, the correct DLLs get packaged within the executable and <code>cmk-update-agent.exe</code>
will work again as intended on affected systems.
(Jira: FEED-3061)
Change-Id: Ia0670c56e5603741857499aa885c5c62d7cd31e7
---
.werks/6931 | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/.werks/6931 b/.werks/6931
new file mode 100644
index 0000000..55759b0
--- /dev/null
+++ b/.werks/6931
@@ -0,0 +1,19 @@
+Title: cmk-update-agent.exe: Fix problem with missing Runtime Library
+Level: 1
+Component: agents
+Compatible: compat
+Edition: cee
+Version: 1.6.0i1
+Date: 1542885280
+Class: fix
+
+Regression since 1.4.0p37 and 1.5.0
+
+On some older Windows Systems and on Systems without a VC++ Runtime Library 2008 (or newer)
+installed, the cmk-update-agent.exe may crash, showing an error like <code>Error loading Python DLL</code>.
+
+We intend to ship a correct version of the needed runtime library within the executable, but this mechanism
+got broken, caused by a sublte change in our build system.
+
+With this werk, the correct DLLs get packaged within the executable and <code>cmk-update-agent.exe</code>
+will work again as intended on affected systems.