Module: check_mk
Branch: master
Commit: 352295a532f8bffb032a4f3642da50f87c9f2678
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=352295a532f8bf…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Jan 9 12:10:53 2018 +0100
Added a TODO.
Change-Id: I003429abb5d12e1b888bb4e4bbd110abf2ac8c59
---
livestatus/src/module.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/livestatus/src/module.cc b/livestatus/src/module.cc
index 16c1bd2..2634abf 100644
--- a/livestatus/src/module.cc
+++ b/livestatus/src/module.cc
@@ -516,6 +516,9 @@ int broker_program(int event_type __attribute__((__unused__)),
return 0;
}
+// TODO(sp) This looks a bit obscure: We do not check if the downtime is active
+// and if it is the right downtime. Furthermore, we only retrieve and log one
+// downtime, even if the current object is in several downtimes at once.
const char *get_downtime_comment(char *host_name, char *svc_desc) {
char *comment;
int matches = 0;