Module: check_mk
Branch: master
Commit: 035fecc6250a03ef70f2fe7c6eedffafadac62d3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=035fecc6250a03…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 21 09:24:25 2016 +0100
Fixed broken graph painter
---
web/plugins/views/painters.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index fa4abb2..46c13af 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -949,14 +949,15 @@ def paint_time_graph_cmk(row, show_timeranges=False):
graph_render_options = {}
if "host_metrics" in row:
- metrics = row["host_metrics"]
+ available_metrics = row["host_metrics"]
perf_data = row["host_perf_data"]
else:
- metrics = row["service_metrics"]
+ available_metrics = row["service_metrics"]
perf_data = row["service_perf_data"]
- if not metrics and perf_data:
- return "", _("No historic metrics recorded.")
+ if not available_metrics and perf_data:
+ return "", _("No historic metrics recorded but performance data is
available. "
+ "Maybe performance data processing is disabled.")
return "", metrics.render_graphs_from_specification_html(
graph_specification,