Module: check_mk
Branch: master
Commit: d6a9745815adc1fab1613b331f347156f37e1cc4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d6a9745815adc1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 2 13:53:35 2017 +0200
check_mkevents: Only query for the needed columns
Change-Id: I04535ec19b2b97772c283507665be118b17d5c5a
---
active_checks/check_mkevents.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/active_checks/check_mkevents.cc b/active_checks/check_mkevents.cc
index 3155fad..fba3c4f 100644
--- a/active_checks/check_mkevents.cc
+++ b/active_checks/check_mkevents.cc
@@ -223,7 +223,10 @@ int main(int argc, char **argv) {
// Create query message
string query_message;
- query_message += "GET events\nFilter: event_host ";
+ query_message += "GET events\n";
+ query_message += "Columns: event_phase event_state event_text\n";
+
+ query_message += "Filter: event_host ";
if (strchr(host, '/') != nullptr) {
query_message += "in ";
query_message += prepare_host_match_list(host);