Module: check_mk
Branch: master
Commit: 954d6f1081cb16d803d6da222aae25137ded82c7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=954d6f1081cb16…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Mar 17 15:04:04 2016 +0100
Fixed link from host graphs to host graph detail page
---
web/plugins/icons/builtin.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 3e3db24..5486ff1 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -329,13 +329,17 @@ def new_graphing_url(row, what):
site_id = row["site"]
urivars = [
- ("view_name", "service_graphs"),
("siteopt", site_id),
("host", row["host_name"]),
]
if what == "service":
- urivars.append(("service", row["service_description"]))
+ urivars += [
+ ("service", row["service_description"]),
+ ("view_name", "service_graphs"),
+ ]
+ else:
+ urivars.append(("view_name", "host_graphs"))
return html.makeuri_contextless(urivars, filename="view.py")