Module: check_mk
Branch: master
Commit: 82dddb3c032c3155c916b468dd66c823e2b8f2c5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82dddb3c032c31…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Nov 28 13:25:05 2018 +0100
6961 FIX Unbreak check_mkevents active check.
The check_mkevents active check was inadvertedly broken in 1.5.0p7 (it could
not connect to the event console), this has been fixed.
Change-Id: Iee1e709fc3acbba77aba9988cb7c453cd9b1eb52
---
.werks/6961 | 11 +++++++++++
active_checks/check_mkevents.cc | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6961 b/.werks/6961
new file mode 100644
index 0000000..90ee44e
--- /dev/null
+++ b/.werks/6961
@@ -0,0 +1,11 @@
+Title: Unbreak check_mkevents active check.
+Level: 2
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1543407796
+Class: fix
+
+The check_mkevents active check was inadvertedly broken in 1.5.0p7 (it could
+not connect to the event console), this has been fixed.
diff --git a/active_checks/check_mkevents.cc b/active_checks/check_mkevents.cc
index eb18419..e448318 100644
--- a/active_checks/check_mkevents.cc
+++ b/active_checks/check_mkevents.cc
@@ -207,7 +207,7 @@ int main(int argc, char **argv) {
sockaddr.sun_path[sizeof(sockaddr.sun_path) - 1] = '\0';
if (0 > connect(sock, reinterpret_cast<struct sockaddr
*>(&sockaddr),
- sizeof(struct sockaddr))) {
+ sizeof(sockaddr))) {
ioError("Cannot connect to event daemon via UNIX socket " +
unixsocket_path);
}