Module: check_mk
Branch: master
Commit: 9d0692ed2ec575d53e2fba1bb55d502b669dca3d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9d0692ed2ec575…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Mar 22 14:39:56 2018 +0100
Don't change a dictionary during iteration. 8-month old bug...
Change-Id: I2fdfd6e2d8f108589ed93a17ac1a38c352ddb590
---
cmk/ec/main.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index 1e17751..26534b5 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -1639,7 +1639,8 @@ class EventServer(ECServerThread):
client_sockets[client_socket.fileno()] = (client_socket, address, "")
# Read data from existing event unix socket connections
- for fd, (cs, address, previous_data) in client_sockets.iteritems():
+ # NOTE: We modify client_socket in the loop, so we need to copy below!
+ for fd, (cs, address, previous_data) in list(client_sockets.iteritems()):
if fd in readable:
# Receive next part of data
try:
Module: check_mk
Branch: master
Commit: 7ca59abc0381be866728596fb159c51c2b61e8ff
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7ca59abc0381be…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 21 15:43:56 2018 +0100
5907 FIX CentOS/RedHat: Add explicit dependency to php-cli to fix possible broken PNP graphs
The previous Check_MK packages were not explicitly declaring the dependency
to the php-cli package which is needed to make Dokuwiki, NagVis and PNP4Nagios
work.
The dependency was only declared for php which normally implies php-cli.
Unfortunately there are third party packages that don't have this implicit
dependency.
To make Check_MK work out of the box with those PHP installations, we now added
php-cli as explicit dependency.
Change-Id: I20ff20e466c4e0048a5f47737fb68b9d274bcbf2
---
.werks/5907 | 19 +++++++++++++++++++
omd/distros/CENTOS_5.mk | 1 +
omd/distros/CENTOS_6.mk | 1 +
omd/distros/CENTOS_7.mk | 1 +
4 files changed, 22 insertions(+)
diff --git a/.werks/5907 b/.werks/5907
new file mode 100644
index 0000000..2ba5754
--- /dev/null
+++ b/.werks/5907
@@ -0,0 +1,19 @@
+Title: CentOS/RedHat: Add explicit dependency to php-cli to fix possible broken PNP graphs
+Level: 1
+Component: packages
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1521643261
+Class: fix
+
+The previous Check_MK packages were not explicitly declaring the dependency
+to the php-cli package which is needed to make Dokuwiki, NagVis and PNP4Nagios
+work.
+
+The dependency was only declared for php which normally implies php-cli.
+Unfortunately there are third party packages that don't have this implicit
+dependency.
+
+To make Check_MK work out of the box with those PHP installations, we now added
+php-cli as explicit dependency.
diff --git a/omd/distros/CENTOS_5.mk b/omd/distros/CENTOS_5.mk
index adabad9..d399651 100644
--- a/omd/distros/CENTOS_5.mk
+++ b/omd/distros/CENTOS_5.mk
@@ -60,6 +60,7 @@ OS_PACKAGES += binutils # Needed by Check_MK Agent Bakery
OS_PACKAGES += rpm-build # Needed by Check_MK Agent Bakery
OS_PACKAGES += perl-Net-SNMP
OS_PACKAGES += php
+OS_PACKAGES += php-cli
OS_PACKAGES += php-mbstring
OS_PACKAGES += php-pdo
OS_PACKAGES += php-gd
diff --git a/omd/distros/CENTOS_6.mk b/omd/distros/CENTOS_6.mk
index acdc68c..8e79b76 100644
--- a/omd/distros/CENTOS_6.mk
+++ b/omd/distros/CENTOS_6.mk
@@ -68,6 +68,7 @@ OS_PACKAGES += pango
OS_PACKAGES += patch
OS_PACKAGES += perl-Net-SNMP
OS_PACKAGES += php
+OS_PACKAGES += php-cli
OS_PACKAGES += php-mbstring
OS_PACKAGES += php-pdo
OS_PACKAGES += php-gd
diff --git a/omd/distros/CENTOS_7.mk b/omd/distros/CENTOS_7.mk
index 4553a18..b87f918 100644
--- a/omd/distros/CENTOS_7.mk
+++ b/omd/distros/CENTOS_7.mk
@@ -74,6 +74,7 @@ OS_PACKAGES += perl-Net-SNMP
OS_PACKAGES += perl-Locale-Maketext-Simple
OS_PACKAGES += perl-IO-Zlib
OS_PACKAGES += php
+OS_PACKAGES += php-cli
OS_PACKAGES += php-mbstring
OS_PACKAGES += php-pdo
OS_PACKAGES += php-gd
Module: check_mk
Branch: master
Commit: 501c011f5c640dc75578fbd9911e3a5b479967bc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=501c011f5c640d…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Mar 21 14:50:49 2018 +0100
checktestlib.py: Slight formatting improvement
Change-Id: I757a78834ab6d481d5cfaacd01b4f10f7772d103
---
tests/checks/checktestlib.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/checks/checktestlib.py b/tests/checks/checktestlib.py
index 68fa1a8..44333f4 100644
--- a/tests/checks/checktestlib.py
+++ b/tests/checks/checktestlib.py
@@ -1,5 +1,7 @@
import types
+
+
class Tuploid(object):
"""Base class for values with (potentially variadic) tuple representations"""
@@ -21,6 +23,7 @@ class Tuploid(object):
yield x
+
class PerfValue(Tuploid):
"""Represents a single perf value"""
@@ -60,6 +63,7 @@ class PerfValue(Tuploid):
self.crit, self.minimum, self.maximum)
+
class BasicCheckResult(Tuploid):
"""
A basic check result
@@ -100,6 +104,7 @@ class BasicCheckResult(Tuploid):
return 'BasicCheckResult(%s, "%s", %s)' % (self.status, self.infotext, self.perfdata)
+
class CheckResult(object):
"""
A check result potentially consisting of multiple subresults,
@@ -152,6 +157,7 @@ class CheckResult(object):
return perfdata
+
class DiscoveryEntry(Tuploid):
"""A single entry as returned by the discovery (or in oldspeak: inventory) function."""
@@ -169,6 +175,7 @@ class DiscoveryEntry(Tuploid):
return "DiscoveryEntry(%r, %r)" % (self.item, self.default_params)
+
class DiscoveryResult(object):
"""
The result of the discovery as a whole.