Module: check_mk
Branch: master
Commit: 57d43240a2e36f52d8e7d566df3238637973e383
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57d43240a2e36f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 10 10:50:52 2013 +0200
FIX: availability of BI: handle pending and missing correctly
---
web/plugins/views/availability.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index fb28ae6..3a63333 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -529,9 +529,9 @@ def do_render_availability(rows, what, avoptions, timeline,
timewarpcode):
s = "flapping"
else:
if what in [ "service", "bi" ]:
- s = { 0: "ok", 1:"warn", 2:"crit",
3:"unknown" }[state]
+ s = { 0: "ok", 1:"warn", 2:"crit",
3:"unknown", -1: "unmonitored", -2: "unmonitored" }[state]
else:
- s = { 0: "up", 1:"down",
2:"unreach"}[state]
+ s = { 0: "up", 1:"down",
2:"unreach", -1: "unmonitored", -2: "unmonitored" }[state]
if s == "warn":
s = avoptions["state_grouping"]["warn"]
elif s == "unknown":