Module: check_mk
Branch: master
Commit: 1f7496d3959dc4370baea8ec88194c1856a06a40
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f7496d3959dc4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Mar 3 10:44:23 2017 +0100
Updated internal notes
Change-Id: I664a08b2cbf4470af3a86474ed23f7b0e964aba9
---
web/htdocs/availability.py | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/web/htdocs/availability.py b/web/htdocs/availability.py
index afba61b..6b4dba0 100644
--- a/web/htdocs/availability.py
+++ b/web/htdocs/availability.py
@@ -730,17 +730,19 @@ def compute_availability(what, av_rawdata, avoptions):
# Now compute availability table. We have the following possible states:
# 1. "unmonitored"
- # 2. "monitored"
- # 2.1 "outof_notification_period"
- # 2.2 "in_notification_period"
- # 2.2.1 "in_downtime" (also in_host_downtime)
- # 2.2.2 "not_in_downtime"
- # 2.2.2.1 "host_down"
- # 2.2.2.2 "host not down"
- # 2.2.2.2.1 "ok"
- # 2.2.2.2.2 "warn"
- # 2.2.2.2.3 "crit"
- # 2.2.2.2.4 "unknown"
+ # 2. monitored -->
+ # 2.1 "outof_service_period"
+ # 2.2 in service period -->
+ # 2.2.1 "outof_notification_period"
+ # 2.2.2 in notification period -->
+ # 2.2.2.1 "in_downtime" (also in_host_downtime)
+ # 2.2.2.2 not in downtime -->
+ # 2.2.2.2.1 "host_down"
+ # 2.2.2.2.2 host not down -->
+ # 2.2.2.2.2.1 "ok"
+ # 2.2.2.2.2.2 "warn"
+ # 2.2.2.2.2.3 "crit"
+ # 2.2.2.2.2.4 "unknown"
availability_table = []
os_aggrs, os_states = get_outage_statistic_options(avoptions)
need_statistics = os_aggrs and os_states