Module: check_mk
Branch: master
Commit: 4a9515d9af52d47412bacf411c206188a16c5107
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4a9515d9af52d4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 23 16:44:25 2016 +0100
Distributed monitoring: Fixed issue with automation secret containing an "&" sign
---
web/htdocs/wato.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index e42770f..1746766 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9560,7 +9560,8 @@ def page_automation_login():
# using the credentials of the administrator. The login is done be exchanging
# a login secret. If such a secret is not yet present it is created on
# the fly.
- html.write_text(repr(get_login_secret(True)))
+ html.set_output_format("python")
+ html.write_html(repr(get_login_secret(True)))
def page_automation():
Module: check_mk
Branch: master
Commit: e02b2ea2fad77d62068332db33f1c8231bce1f67
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e02b2ea2fad77d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 23 16:36:47 2016 +0100
4068 FIX Fixed possible exception in case of wrong automation secrets between multiple sites
When having a distributed WATO setup and a site secret is changed, the error message
could not be displayed correctly when using a localized GUI.
---
.werks/4068 | 11 +++++++++++
ChangeLog | 1 +
web/htdocs/index.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/4068 b/.werks/4068
new file mode 100644
index 0000000..83bd585
--- /dev/null
+++ b/.werks/4068
@@ -0,0 +1,11 @@
+Title: Fixed possible exception in case of wrong automation secrets between multiple sites
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i3
+Date: 1479915339
+
+When having a distributed WATO setup and a site secret is changed, the error message
+could not be displayed correctly when using a localized GUI.
diff --git a/ChangeLog b/ChangeLog
index 5258b68..a186e1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 3977 FIX: Fixed poping up changes button in sidebar snapin after a change
* 3982 FIX: Some MKPs created with WATO could not be uploaded to the Check_MK Exchange
* 4045 FIX: Tactical Overview: do not count OK events as problems
+ * 4068 FIX: Fixed possible exception in case of wrong automation secrets between multiple sites...
Notifications:
* 4042 FIX: Fix missing From address in synchronous SMTP notifications...
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 5d2240f..012b67c 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -70,7 +70,7 @@ def handler(mod_python_req, fields = None, is_profiling = False):
try:
handler()
except Exception, e:
- html.write(str(e))
+ html.write("%s" % e)
if config.debug:
html.write(html.attrencode(traceback.format_exc()))
raise FinalizeRequest()
Module: check_mk
Branch: master
Commit: 8db96a676162c90b28bf3af6e270bfa2a1c4b044
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8db96a676162c9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 23 15:58:58 2016 +0100
Fixed port conflicts with EC during tests
---
tests/testlib/__init__.py | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 496f8ab..be63e83 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -375,18 +375,21 @@ class Site(object):
if self.reuse and self.exists():
port = int(self.get_config("LIVESTATUS_TCP_PORT"))
else:
- port = 9123
- print "Trying port %d" % port
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- while sock.connect_ex(('127.0.0.1', port)) == 0:
- print "Port %d is already used, trying next" % port
- port += 1
- sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- print "Using port %d" % port
+ port = self.get_free_port_from(9123)
self._livestatus_port = port
+ def get_free_port_from(self, port):
+ print "Trying port %d" % port
+ sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ while sock.connect_ex(('127.0.0.1', port)) == 0:
+ print "Port %d is already used, trying next" % port
+ port += 1
+ sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ print "Using port %d" % port
+ return port
+
# Problem: The group change only affects new sessions of the test_user
#def add_test_user_to_site_group(self):
# test_user = pwd.getpwuid(os.getuid())[0]
@@ -779,7 +782,7 @@ class CMKEventConsole(CMKWebSession):
if self.site.reuse and self.site.exists() and "remote_status" in config:
port = config["remote_status"][0]
else:
- port = self.site.livestatus_port + 1
+ port = self.site.get_free_port_from(self.site.livestatus_port + 1)
self.status_port = port
Module: check_mk
Branch: master
Commit: b765a0cc873fd7e93d2e3157a08ee055066eb9ad
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b765a0cc873fd7…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Nov 23 14:40:24 2016 +0100
compressed ipv6 notation in example ini
---
agents/windows/check_mk.example.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/check_mk.example.ini b/agents/windows/check_mk.example.ini
index 8d6709c..eec9a51 100644
--- a/agents/windows/check_mk.example.ini
+++ b/agents/windows/check_mk.example.ini
@@ -3,7 +3,7 @@
# Restrict access to certain IP addresses
# If ipv6 is enabled, all listed ipv4 adresses are also accepted as
# source adresses in their ipv6-mapped form. I.e. if
- # 192.168.56.0/24 is listed, connections from 0:0:0:0:0:ffff:c0a8:3800/120
+ # 192.168.56.0/24 is listed, connections from ::ffff:c0a8:3800/120
# are also possible
# only_from = 127.0.0.1 192.168.56.0/24 ::1