Module: check_mk
Branch: master
Commit: 5e1a811503d9a20cbb08d44b7fd8133386d76118
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e1a811503d9a2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 20 09:56:44 2015 +0100
EC: fix missing ipaddress when doing logwatch forwarding
---
mkeventd/bin/mkeventd | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index e33d83c..ea452d7 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -2117,7 +2117,9 @@ class EventServer:
event["host"] = ""
def parse_event(self, line, address):
- event = {}
+ event = {
+ "ipaddress" : address or "",
+ }
try:
# Variant 1: plain syslog message without priority/facility:
# May 26 13:45:01 Klapprechner CRON[8046]: message....