Module: check_mk
Branch: master
Commit: 1ae69bd18126ecce63e5881b3b2272693c7747cb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ae69bd18126ec…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jan 8 15:11:53 2016 +0100
#2823 FIX Availability: Fixed division by zero error on rendering the availability table
---
.werks/2823 | 9 +++++++++
ChangeLog | 3 +++
web/htdocs/availability.py | 3 +++
3 files changed, 15 insertions(+)
diff --git a/.werks/2823 b/.werks/2823
new file mode 100644
index 0000000..2b22313
--- /dev/null
+++ b/.werks/2823
@@ -0,0 +1,9 @@
+Title: Availability: Fixed division by zero error on rendering the availability table
+Level: 1
+Component: reporting
+Compatible: compat
+Version: 1.2.7i4
+Date: 1452262229
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 0a5a35a..d791b46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -240,6 +240,9 @@
* 2815 FIX: Notification scripts: Fixed missing environment variables...
* 2821 FIX: WATO rule based notifications: Validate regular expression for service
conditions...
+ Reporting & Availability:
+ * 2823 FIX: Availability: Fixed division by zero error on rendering the availability
table
+
Event Console:
* 2733 Visibility of Event Console events more flexible now...
* 1306 mkeventd: The Recent event history can you be filtered by extended regexes
diff --git a/web/htdocs/availability.py b/web/htdocs/availability.py
index 28a66c6..bfc210f 100644
--- a/web/htdocs/availability.py
+++ b/web/htdocs/availability.py
@@ -732,6 +732,9 @@ def compute_availability(what, av_rawdata, avoptions):
def pass_availability_filter(row, avoptions):
+ if row["considered_duration"] == 0:
+ return True
+
for key, level in avoptions["av_filter_outages"].items():
if level == 0.0:
continue