Module: check_mk
Branch: master
Commit: 0b01cd40fc69f4c851cf40c789d67492ae06b2bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b01cd40fc69f4…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jul 9 16:50:10 2018 +0200
Event Console: Add core_host default values to events created from both syslog and SNMP
traps
Change-Id: I4ab766f901ba9921211250364fe03036780dc79a
---
cmk/ec/main.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index 583f63c..ab6ab67 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -890,7 +890,8 @@ class EventServer(ECServerThread):
'priority': 5, # notice
'facility': 31, # not used by syslog -> we use this for all
traps
'application': application,
- 'text': text
+ 'text': text,
+ 'core_host' : '',
}
return event
@@ -2024,6 +2025,7 @@ class EventServer(ECServerThread):
event = {
# address is either None or a tuple of (ipaddress, port)
"ipaddress": address and address[0] or "",
+ "core_host": "",
}
try:
# Variant 1: plain syslog message without priority/facility:
@@ -2179,6 +2181,7 @@ class EventServer(ECServerThread):
"application": "",
"pid": 0,
"time": time.time(),
+ "core_host": "",
}
if self._config["debug_rules"]: