Module: check_mk
Branch: master
Commit: 384af8cfaa9f30554db61bd72f252e15d178c5d4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=384af8cfaa9f30…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 26 11:09:50 2012 +0200
Dashboard globes can now be filtered by host_contact_group/service_contact_group
---
web/htdocs/dashboard.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index b3c3c14..dbec35f 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -553,6 +553,10 @@ def render_statistics(pie_id, what, table, filter):
for (name, color, viewurl, query), count in table_entries:
url = "view.py?view_name=" + viewurl +
"&filled_in=filter&search=1&wato_folder=" \
+ htmllib.urlencode(html.var("wato_folder", ""))
+ if host_contact_group:
+ url += '&opthost_contactgroup=' + host_contact_group
+ if service_contact_group:
+ url += '&optservice_contactgroup=' + service_contact_group
html.write('<tr><th><a
href="%s">%s</a></th>' % (url, name))
style = ''
if color: