Module: check_mk
Branch: master
Commit: ae5150b35be9d230e17aa6e6282e90157c1e4799
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ae5150b35be9d2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 4 11:16:27 2013 +0100
FIX: BI see_all permission is now working again
---
.bugs/825 | 7 +++++--
.bugs/826 | 7 +++++--
ChangeLog | 1 +
web/htdocs/bi.py | 5 ++++-
4 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/.bugs/825 b/.bugs/825
index c4339ac..868ddd2 100644
--- a/.bugs/825
+++ b/.bugs/825
@@ -1,8 +1,11 @@
Title: BI: See all Nagios objects seems not to work
Component: bi
-State: open
+Class: bug
+State: done
Date: 2013-01-24 17:44:29
Targetversion: 1.2.2
-Class: bug
See Ticket 793881
+
+2013-03-04 11:15:48: changed state open -> done
+Just fixed it.
diff --git a/.bugs/826 b/.bugs/826
index cb7d6de..a862a58 100644
--- a/.bugs/826
+++ b/.bugs/826
@@ -1,10 +1,13 @@
Title: function paint_aggr_tree_foldable is not defiened
Component: bi
-State: open
+Class: bug
+State: done
Date: 2013-02-01 11:33:32
Targetversion: 1.2.2
-Class: bug
View painter paint_aggr_tree_foldable is used:
web/plugins/views/bi.py: "paint" : lambda row:
paint_aggr_tree_foldable(row, boxes = True, omit_root = True),
but nowhere defined
+
+2013-03-04 10:57:06: changed state open -> done
+already solved. This code does not exist anymore.
diff --git a/ChangeLog b/ChangeLog
index 5dffbad..074d8e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -98,6 +98,7 @@
* FIX: list of BI aggregates was incomplete in some cases
* FIX: single host aggregations didn't work for aggregations += [...]
* FIX: top-down and bottom-up was broken in case of "only problems"
+ * FIX: BI see_all permission is now working again
* Do not handle PENDING as "problem" anymore
* Make titles of non-leaf tree nodes klickable
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index a52b082..2439f1b 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1111,10 +1111,12 @@ def get_status_info(required_hosts):
filter += "Filter: name = %s\n" % host
if len(hosts) > 1:
filter += "Or: %d\n" % len(hosts)
+ html.live.set_auth_domain('bi')
data = html.live.query(
"GET hosts\n"
"Columns: name state plugin_output services_with_info\n"
+ filter)
+ html.live.set_auth_domain('read')
tuples += [((site, e[0]), e[1:]) for e in data]
return dict(tuples)
@@ -1138,14 +1140,15 @@ def get_status_info_filtered(filter_header, only_sites, limit,
add_columns, fetc
html.write('<div class="livestatus message"
onmouseover="this.style.display=\'none\';">'
'<tt>%s</tt></div>\n' %
(query.replace('\n', '<br>\n')))
-
html.live.set_only_sites(only_sites)
html.live.set_prepend_site(True)
+ html.live.set_auth_domain('bi')
data = html.live.query(query)
html.live.set_prepend_site(False)
html.live.set_only_sites(None)
+ html.live.set_auth_domain('read')
headers = [ "site" ] + columns
hostnames = [ row[1] for row in data ]