Module: check_mk
Branch: master
Commit: 38fbdd92fb48c1e3da4a1d66a757e8f68fc52fdb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=38fbdd92fb48c1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Aug 12 11:36:52 2011 +0200
Multisite: add column for host contacts
---
ChangeLog | 1 +
web/plugins/views/painters.py | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2395c3a..dba202b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,7 @@
will be in var/check_mk/web)
* WATO: Added new hook "active-changes" which calls the registered hosts
with a dict of "dirty" hosts
+ * Added column painter for host contacts
WATO:
* Configration files can now be administered via the WEB UI
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index ff227ae..9b976a0 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -1160,6 +1160,13 @@ multisite_painters["host_group_memberlist"] = {
"paint" : paint_host_group_memberlist
}
+multisite_painters["host_contacts"] = {
+ "title" : _("Host contacts"),
+ "short" : _("Contacts"),
+ "columns" : ["host_contacts"],
+ "paint" : lambda row: (None, ",
".join(row["host_contacts"]))
+}
+
multisite_painters["host_custom_notes"] = {
"title" : _("Custom host notes"),
"short" : _("Notes"),