Module: check_mk
Branch: master
Commit: d15566ff7cac093b4c4e694881f978f439ac6d61
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d15566ff7cac09…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 14 15:32:19 2016 +0100
Added some inline comments
Change-Id: Ib7387b397c50b816cc27cda6809ef4015d17996a
---
bin/mkeventd | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bin/mkeventd b/bin/mkeventd
index 38c5ac2..58f8147 100755
--- a/bin/mkeventd
+++ b/bin/mkeventd
@@ -4066,7 +4066,10 @@ def fetch_contacts_of_group_from_livestatus(group_name):
return None # No group match or other failure
+# None, None -> Host could not be found
+# [], [] -> Host found but has no contacts/contactgroups
def fetch_contacts_and_groups_of_host_from_livestatus(host):
+ # TODO: Matching von Hostnamen muss identisch sein zu dem im CMC
try:
answer = livestatus_query("GET hosts\nFilter: host_name = %s\n"
"Columns: contacts contact_groups\nOutputFormat:
python\n" % host)