Module: check_mk
Branch: master
Commit: c7c4b2d673d5075b0c896816d02fc174844a956e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c7c4b2d673d507…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 2 09:32:09 2011 +0200
Added downtimes/acks to nagstamon views
---
web/plugins/views/builtin.py | 4 ++++
web/plugins/views/painters.py | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 53ac888..87ecaae 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1841,6 +1841,8 @@ multisite_builtin_views = {
('host_in_downtime', None, ''),
('host_acknowledged', None, ''),
('host_address', None, ''),
+ ('host_in_downtime', None, ''),
+ ('host_acknowledged', None, ''),
('sitename_plain', None, '')],
'play_sounds': False,
'public': True,
@@ -1898,6 +1900,8 @@ multisite_builtin_views = {
('svc_flapping', None, ''),
('svc_notifications_enabled', None, ''),
('svc_is_active', None, ''),
+ ('svc_in_downtime', None, ''),
+ ('svc_acknowledged', None, ''),
('sitename_plain', None, ''),
('host_address', None, ''),
('svc_check_command', None, '')],
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 168816c..60ad7f6 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -653,7 +653,12 @@ multisite_painters["svc_comments"] = {
"paint" : lambda row: paint_comments("service_", row)
}
-
+multisite_painters["svc_acknowledged"] = {
+ "title" : "Service problem acknowledged",
+ "short" : "Ack",
+ "columns" : ["service_acknowledged"],
+ "paint" : lambda row: paint_nagiosflag(row,
"service_acknowledged", False)
+}
def notes_matching_pattern_entries(dirs, item):