Module: check_mk
Branch: master
Commit: dbbfd86db327e16339e4a51287eaca34c9789733
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dbbfd86db327e1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed May 22 11:54:22 2013 +0200
FIX: fix icon in events check if host specification is by IP address
---
ChangeLog | 3 +++
mkeventd/web/plugins/icons/mkeventd.py | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7769b01..1707784 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -151,6 +151,9 @@
* FIX: convert editing of global setting to POST. This avoid URL-too-long
when defining lots of Event Console actions
+ Event Console:
+ * FIX: fix icon in events check if host specification is by IP address
+
1.2.2p1:
Core:
* FIX: correctly quote ! and \ in active checks for Nagios
diff --git a/mkeventd/web/plugins/icons/mkeventd.py
b/mkeventd/web/plugins/icons/mkeventd.py
index c7027d3..01d67ad 100644
--- a/mkeventd/web/plugins/icons/mkeventd.py
+++ b/mkeventd/web/plugins/icons/mkeventd.py
@@ -78,11 +78,11 @@ def paint_mkeventd(what, row, tags, custom_vars):
if getattr(config, 'mkeventd_distributed', False):
url_prefix = site['url_prefix'] + 'check_mk/'
- title = _('Events of Host %s') % (host)
+ title = _('Events of Host %s') % (row["host_name"])
url = 'view.py?' + htmllib.urlencode_vars([
("view_name", "ec_events_of_monhost"),
("site", row["site"]),
- ("host", host),
+ ("host", row["host_name"]),
])
if len(args) >= 2: