Module: check_mk
Branch: master
Commit: 6a1097a24a9af641732e94c2a57cc7f1f4c188ad
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a1097a24a9af6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Feb 9 18:37:21 2013 +0100
FIX: BI did not handle PENDING on host state
---
web/htdocs/bi.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 85c5266..3fd0159 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1019,7 +1019,7 @@ def execute_leaf_node(node, status_info):
return ({"state":MISSING, "output": _("This host has no
such service")}, None, node)
else:
- aggr_state = {0:OK, 1:CRIT, 2:UNKNOWN}[host_state]
+ aggr_state = {0:OK, 1:CRIT, 2:UNKNOWN, -1:PENDING}[host_state]
state = {"state":aggr_state, "output" : host_output}
if state_assumption != None:
assumed_state = {"state": state_assumption,