Module: check_mk
Branch: master
Commit: ef058f0a229774a1555f2aaa512ab6d889f3fdf5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef058f0a229774…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 22 13:29:39 2018 +0100
Added revamped settings handling for the event console. Not used yet.
Features:
* Auto-formatted via autopep8.
* Fully typed via mypy, no unmaintainable dict/tuple/list-Kung-Fu.
* pylint-clean with pylint's out-of-the-box configuration.
* For everything there's a single source of truth, so e.g. the commandline
help is guaranteed to be in synch with reality (which it is *not* in the
current EC).
The code is not yet used in the EC, this will be one or more separate
commits.
Change-Id: Ia87deb9624efc381771214fd3011598d2ff46f11
---
cmk/.f12 | 2 +-
cmk/ec/__init__.py | 0
cmk/ec/settings.py | 232 ++++++++++++++++++++++++++++++++++++++++++++
cmk/paths.py | 4 +-
tests/.gitignore | 3 +-
tests/Makefile | 24 ++++-
tests/typeshed/pathlib2.pyi | 120 +++++++++++++++++++++++
7 files changed, 379 insertions(+), 6 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=ef058f0a22…
Module: check_mk
Branch: master
Commit: 03793b3b54f2cfa6efb45c3f1c938c88f7b9ce1c
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03793b3b54f2cf…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Feb 22 13:29:50 2018 +0100
clang-formatted
Change-Id: Iba6bfce8368333a69d0cd6f46279b27d981237be
---
bin/mkeventd_open514.cc | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/bin/mkeventd_open514.cc b/bin/mkeventd_open514.cc
index 65836ed..1a5ebcf 100644
--- a/bin/mkeventd_open514.cc
+++ b/bin/mkeventd_open514.cc
@@ -97,8 +97,9 @@ int main(int argc, char **argv) {
addr.sin_addr.s_addr = 0;
if (0 != bind(syslog_sock, reinterpret_cast<struct sockaddr *>(&addr),
sizeof(addr))) {
- perror("Cannot bind UDP socket for syslog to port "
- "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
+ perror(
+ "Cannot bind UDP socket for syslog to port "
+ "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
exit(1);
}
@@ -134,8 +135,9 @@ int main(int argc, char **argv) {
if (0 != bind(syslog_tcp_sock,
reinterpret_cast<struct sockaddr *>(&addr),
sizeof(addr))) {
- perror("Cannot bind TCP socket for syslog-tcp to port "
- "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
+ perror(
+ "Cannot bind TCP socket for syslog-tcp to port "
+ "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
exit(1);
}
@@ -170,8 +172,9 @@ int main(int argc, char **argv) {
addr.sin_addr.s_addr = 0;
if (0 != bind(snmptrap_sock, reinterpret_cast<struct sockaddr *>(&addr),
sizeof(addr))) {
- perror("Cannot bind UDP socket for snmptrap to port "
- "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
+ perror(
+ "Cannot bind UDP socket for snmptrap to port "
+ "(Is SUID bit set on mkeventd_open514? Is \"nosuid\" not set on the filesystem?)");
exit(1);
}