Module: check_mk
Branch: master
Commit: 04c79be244fcff5e66d5c01b76181dc2a5d68ac4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=04c79be244fcff…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 1 12:25:04 2013 +0100
BI: Do not handle PENDING as "problem" anymore
---
ChangeLog | 1 +
web/htdocs/bi.py | 2 +-
web/plugins/views/builtin.py | 6 +++---
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d9f3ade..1c1900a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -91,6 +91,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"
+ * Do not handle PENDING as "problem" anymore
* Make titles of non-leaf tree nodes klickable
WATO:
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 78a6961..a52b082 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1579,7 +1579,7 @@ def filter_tree_only_problems(tree):
new_subtrees = []
for subtree in subtrees:
effective_state = subtree[1] != None and subtree[1] or subtree[0]
- if effective_state["state"] != OK:
+ if effective_state["state"] not in [ OK, PENDING ]:
if len(subtree) == 3:
new_subtrees.append(subtree)
else:
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 1a4001d..a6fec08 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -2418,18 +2418,18 @@ multisite_builtin_views.update({
('birs1', 'on'),
('birs2', 'on'),
('birs3', 'on'),
- ('birs-1', 'on'),
+ ('birs-1', ''),
('bias0', 'on'),
('bias1', 'on'),
('bias2', 'on'),
('bias3', 'on'),
- ('bias-1', 'on'),
+ ('bias-1', ''),
('biasn', 'on'),
('bies0', 'on'),
('bies1', 'on'),
('bies2', 'on'),
('bies3', 'on'),
- ('bies-1', 'on'),
+ ('bies-1', ''),
],
'hidden': False,
'hide_filters': [],