[checkmk-commits] Check_MK Git: check_mk: Try to fix problem in Event Console icon

git version control git at mathias-kettner.de
Fri Nov 9 15:18:04 CET 2012


Module: check_mk
Branch: master
Commit: 838fc87d371678280d98ea764b7a4c6ccea6f23e
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=838fc87d371678280d98ea764b7a4c6ccea6f23e

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Fri Nov  9 15:17:58 2012 +0100

Try to fix problem in Event Console icon

---

 mkeventd/web/plugins/icons/mkeventd.py |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/mkeventd/web/plugins/icons/mkeventd.py b/mkeventd/web/plugins/icons/mkeventd.py
index b87a5cc..fff175f 100644
--- a/mkeventd/web/plugins/icons/mkeventd.py
+++ b/mkeventd/web/plugins/icons/mkeventd.py
@@ -50,6 +50,13 @@ def paint_mkeventd(what, row, tags, custom_vars):
         return
 
     if len(args) >= 1:
+        # Handle -a and -H options. Sorry for the hack. We currently
+        # have no better idea
+        if args[0] == '-H':
+            args = args[2:] # skip two arguments
+        if args[0] == '-a':
+            args = args[1:]
+
         if args[0] == '$HOSTNAME$':
             host = row['host_name']
         elif args[0] == '$HOSTADDRESS$':
@@ -79,6 +86,6 @@ def paint_mkeventd(what, row, tags, custom_vars):
 
 if mkeventd_enabled:
     multisite_icons.append({
-        'host_columns': [ 'address' ],
+        'host_columns': [ 'address', 'name' ],
         'paint':   paint_mkeventd,
     })



More information about the checkmk-commits mailing list