[checkmk-commits] Check_MK Git: check_mk: #1897 FIX Fixed exception in BI Availability view

Konstantin Büttner kb at mathias-kettner.de
Mon Apr 13 17:08:39 CEST 2015


Module: check_mk
Branch: master
Commit: cde46ad23ae2b56862a6b07d6d77cec9e96c49f6
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cde46ad23ae2b56862a6b07d6d77cec9e96c49f6

Author: Konstantin Büttner <kb at mathias-kettner.de>
Date:   Mon Apr 13 17:02:56 2015 +0200

#1897 FIX Fixed exception in BI Availability view

The Availabilty view for single host BI aggregations would previously crash due to a key error. This has been fixed.

---

 .werks/1897      |   10 ++++++++++
 ChangeLog        |    1 +
 web/htdocs/bi.py |    2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.werks/1897 b/.werks/1897
new file mode 100644
index 0000000..c684737
--- /dev/null
+++ b/.werks/1897
@@ -0,0 +1,10 @@
+Title: Fixed exception in BI Availability view
+Level: 1
+Component: bi
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1428937251
+
+The Availabilty view for single host BI aggregations would previously crash due to a key error. This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index af1bbf6..90a6501 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -458,6 +458,7 @@
     * 1784 FIX: Fix exception in BI Boxes when parents are being used
     * 2020 FIX: Fixed non working FOREACH_CHILD mechanism for BI rules
     * 2085 FIX: Host search for child nodes can now filter child nodes by tags or patterns...
+    * 1897 FIX: Fixed exception in BI Availability view...
 
     Reporting & Availability:
     * 1990 FIX: Fix two exceptions in PDF exports of host group views
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 48e3683..adb6e5a 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1194,7 +1194,7 @@ def get_status_info(required_hosts):
 # hosts but with a livestatus filter header and a list of columns
 # that need to be fetched in any case
 def get_status_info_filtered(filter_header, only_sites, limit, add_columns, fetch_parents = True, bygroup=False):
-    columns = [ "name", "state", "hard_state", "plugin_output", "scheduled_downtime_depth",
+    columns = [ "name", "host_name", "state", "hard_state", "plugin_output", "scheduled_downtime_depth",
                 "acknowledged", "services_with_fullstate", "parents" ] + add_columns
 
     html.live.set_only_sites(only_sites)



More information about the checkmk-commits mailing list