Module: check_mk
Branch: master
Commit: 60f3c1f1d6760ff8a8373b83dfdb5e739d87b734
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=60f3c1f1d6760f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 14 11:23:11 2013 +0100
Revert "mkeventd: Fixed replacing of contact information for events"
This reverts commit 888fb413a68f60ad5a9b5e58b443272f26e42f4a.
---
mkeventd/bin/mkeventd | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mkeventd/bin/mkeventd b/mkeventd/bin/mkeventd
index f8998f4..67ff397 100755
--- a/mkeventd/bin/mkeventd
+++ b/mkeventd/bin/mkeventd
@@ -1415,7 +1415,7 @@ class EventServer:
event["comment"] = replace_groups(rule["set_comment"],
event.get("comment", ""), groups)
if "set_application" in rule:
event["application"] =
replace_groups(rule["set_application"], event["application"], groups)
- if "set_contact" in rule:
+ if "set_contact" in rule and "contact" not in event:
event["contact"] = replace_groups(rule["set_contact"],
event.get("contact", ""), groups)
def parse_monitoring_info(self, line):