Module: check_mk
Branch: master
Commit: 32d06c9fe49e049e45bde3570a33b716cd978a4a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32d06c9fe49e04…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 26 17:10:40 2016 +0200
Hide EC from tactical overview when disabled in local sites and no events are found in any
site
---
web/plugins/sidebar/shipped.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index da0177d..203dee5 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -696,6 +696,10 @@ def render_tactical_overview(extra_filter_headers="",
extra_url_variables=None):
if row["what"] == "event":
amount, problems, unhandled_problems = row["data"]
stales = 0
+
+ # no events open and disabled in local site: don't show events
+ if amount == 0 and not config.mkeventd_enabled:
+ continue
else:
amount, problems, unhandled_problems, stales = row["data"]