Module: check_mk
Branch: master
Commit: b2225e7ac87455abcd2093921989994f4995587d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2225e7ac87455…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 26 10:56:25 2012 +0200
mkeventd: log prio/facility at rule hits
---
mkeventd/bin/mkeventd | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index 2dc4b98..a6e54ea 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -952,7 +952,10 @@ class EventServer:
g_event_status.count_rule_match(rule["id"])
if g_config["log_rulehits"]:
- log("Rule %s hit by message '%s'." %
(event["text"], rule["id"]))
+ log("Rule %s hit by message %s/%s - '%s'." % (
+ rule["id"],
+ syslog_facilities[event["facility"]],
syslog_priorities[event["priority"]],
+ event["text"]))
if rule.get("drop"):
self.count("drops")
return