Module: check_mk
Branch: master
Commit: c73bb0baf8a381d796724800a79c317103eb4012
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c73bb0baf8a381…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Wed Mar 25 14:57:14 2015 +0100
mkeventd: fixed determination of original source ip address
---
mkeventd/bin/mkeventd | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index d505460..72ec19f 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -2118,7 +2118,8 @@ class EventServer:
def parse_event(self, line, address):
event = {
- "ipaddress" : address or "",
+ # address is either None or a tuple of (ipaddress, port)
+ "ipaddress" : address and address[0] or "",
}
try:
# Variant 1: plain syslog message without priority/facility: