Module: check_mk
Branch: master
Commit: 27975cadf290f2ef806a0634061f399d6fa7f980
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=27975cadf290f2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Dec 15 12:25:59 2010 +0100
Multisite: fix colons in PNP links
thanks to Dirk Mayer
---
ChangeLog | 1 +
web/plugins/views/painters.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a54422f..88eafe9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* Finally show host/services icons from the nagios value "icon_image".
Put your icon files in /usr/share/check_mk/web/htdocs/images/icons.
OMD users put the icons into ~/local/share/check_mk/web/htdocs/images/icons.
+ * fix problem with PNP-links with services containing a ':' (thanks to Dirk
Mayer)
1.1.9i2:
Checks & Agents:
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 50f7a5b..ff1197d 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1105,7 +1105,7 @@ def pnp_icon_link(row):
if config.site_is_local(row["site"]):
# Where is our RRD?
basedir = defaults.rrd_path + "/" + row["host_name"]
- xmlpath = basedir + "/" +
row["service_description"].replace("/", "_").replace("
", "_") + ".xml"
+ xmlpath = basedir + "/" +
row["service_description"].replace("/", "_").replace("
", "_").replace(":", "_") + ".xml"
if os.path.exists(xmlpath):
return a
else: