Module: check_mk
Branch: master
Commit: 26eb5ec266668f834f5b01454b702e09e135869f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26eb5ec266668f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 25 09:04:47 2018 +0100
Fixed broken graph pages in raw edition
Change-Id: Ia15dabbbf530a4cee0ec317e23cd93b77b7bc9a6
---
web/plugins/views/painters.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 1d44d64..ab13d8a 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1138,6 +1138,13 @@ def paint_time_graph_pnp(row):
config.url_prefix() + "check_mk/", pnp_url,
with_link, _('Add this graph to...'), from_ts, to_ts)
+def time_graph_params():
+ if not metrics.cmk_graphs_possible():
+ return # The method is only available in CEE
+
+ return cmk_time_graph_params()
+
+
multisite_painters["svc_pnpgraph" ] = {
"title" : _("Service Graphs"),
"columns" : [ "host_name", "service_description",
"service_perf_data", "service_metrics",
"service_check_command" ],