Module: check_mk
Branch: master
Commit: 6c5d5a437e2ff7d2c41791c03d9f63a48aa38466
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6c5d5a437e2ff7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 2 14:24:32 2015 +0100
Remove bogus \n removal in host name which is always an IP address
---
mkeventd/bin/mkeventd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index fc79159..6dd2160 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -1284,7 +1284,7 @@ class EventServer:
text = text.decode("latin-1")
event = {
'time' : time.time(),
- 'host' : host.replace('\n', ''),
+ 'host' : host,
'ipaddress' : ipaddress,
'priority' : 5, # notice
'facility' : 31, # not used by syslog -> we use this for all
traps