Module: check_mk
Branch: master
Commit: 48443d98b989d2feb15981bf8ffdd3b36b4b7c0d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48443d98b989d2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 7 14:18:11 2011 +0200
BI: fix worst aggregation: CRIT went to UNKNOWN
---
web/htdocs/bi.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index b7a036a..3b20d51 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -796,10 +796,10 @@ def aggr_nth_state(nodes, n, worst_state):
else:
return state, ""
-def aggr_worst(nodes, n = 1, worst_state = 3):
+def aggr_worst(nodes, n = 1, worst_state = CRIT):
return aggr_nth_state(nodes, -int(n), int(worst_state))
-def aggr_best(nodes, n = 1, worst_state = 3):
+def aggr_best(nodes, n = 1, worst_state = CRIT):
return aggr_nth_state(nodes, int(n), int(worst_state))
config.aggregation_functions["worst"] = aggr_worst