Module: check_mk
Branch: master
Commit: cc7d298422de0e419b5c0636dd17d6a816b8eaaf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc7d298422de0e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 2 15:23:49 2017 +0100
Fixed graph for traceroute after new combined graphs
Change-Id: I476e7d05e9fe14586f60b2a7ab95aa1fa4008e94
---
web/plugins/metrics/check_mk.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/web/plugins/metrics/check_mk.py b/web/plugins/metrics/check_mk.py
index df895cb..83fa5ab 100644
--- a/web/plugins/metrics/check_mk.py
+++ b/web/plugins/metrics/check_mk.py
@@ -7215,19 +7215,18 @@ for idx in range(1, MAX_NUMBER_HOPS):
def create_hop_response_graph():
- max_hops = MAX_NUMBER_HOPS
new_graph = {
"title" : _("Hop response times"),
"metrics": [],
"optional_metrics": [],
}
- for idx in range(1, max_hops):
- color = indexed_color(idx, max_hops)
+ for idx in range(1, MAX_NUMBER_HOPS):
+ color = indexed_color(idx, MAX_NUMBER_HOPS)
new_graph["metrics"].append( ("hop_%d_response_time%s" %
(idx, parse_color_into_hexrgb(color)), "line") )
if idx > 0:
new_graph["optional_metrics"].append(
("hop_%d_response_time" % (idx + 1)) )
- graph_info["hop_%e_response_time" % (idx + 1)] = new_graph
+ graph_info["hop_response_time"] = new_graph
create_hop_response_graph()