Module: check_mk
Branch: master
Commit: 1ca41f3157b7718b4dafa00f02f06fce29578cbe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ca41f3157b771…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Oct 23 08:56:56 2012 +0200
Added optional site filter to notifications and events list views
---
web/plugins/views/builtin.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index ea1c0e9..49bd369 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1557,7 +1557,8 @@ multisite_builtin_views.update({
'description': 'All historic events of hosts or services (alerts,
downtimes, etc.)',
'group_painters': [('log_date', None)],
'hard_filters': [],
- 'hard_filtervars': [('host', ''),
+ 'hard_filtervars': [('site', ''),
+ ('host', ''),
('service', ''),
('logtime_from_range', '86400'),
('logtime_from', '7'),
@@ -1580,7 +1581,8 @@ multisite_builtin_views.update({
('log_plugin_output', None)],
'play_sounds': False,
'public': True,
- 'show_filters': ['hostregex',
+ 'show_filters': ['siteopt',
+ 'hostregex',
'serviceregex',
'logtime',
'log_plugin_output',
@@ -2696,6 +2698,7 @@ multisite_builtin_views.update({
('logclass4', ''),
('logclass5', ''),
('logclass6', ''),
+ ('site', ''),
('host', ''),
('service', ''),
('log_plugin_output', ''),
@@ -2723,7 +2726,8 @@ multisite_builtin_views.update({
('log_plugin_output', None, '')],
'play_sounds': False,
'public': True,
- 'show_filters': ['hostregex',
+ 'show_filters': ['siteopt',
+ 'hostregex',
'serviceregex',
'log_plugin_output',
'logtime',