Module: check_mk
Branch: master
Commit: 11e0cca655b9432f6a62760169e3dfac7e22739b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=11e0cca655b943…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 25 21:11:15 2012 +0100
Added a couple of filters to general host views
---
web/plugins/views/builtin.py | 38 +++++++++++++++++++++++++++++++-------
1 files changed, 31 insertions(+), 7 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 49bd369..49ea300 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -31,10 +31,7 @@ multisite_builtin_views.update({
'description': 'Overall state of allhosts, with counts of
services in the various states.',
'group_painters': [('sitealias', None)],
'hard_filters': ['summary_host'],
- 'hard_filtervars': [('site', ''),
- ('is_summary_host', '0'),
- ('host', ''),
- ('opthostgroup', '')],
+ 'hard_filtervars': [('is_summary_host', '0')],
'hidden': False,
'hide_filters': [],
'layout': 'table',
@@ -52,7 +49,16 @@ multisite_builtin_views.update({
('num_services_pending', 'host_pending')],
'play_sounds': False,
'public': True,
- 'show_filters': ['siteopt', 'hostregex',
'opthostgroup'],
+ 'show_filters': ['host_scheduled_downtime_depth',
+ 'host_in_notification_period',
+ 'hoststate',
+ 'siteopt',
+ 'host_acknowledged',
+ 'hostregex',
+ 'host_notifications_enabled',
+ 'opthostgroup',
+ 'host_check_command',
+ 'opthost_contactgroup'],
'sorters': [('site', False), ('site_host',
False)],
'title': _('All hosts'),
'topic': _('Hosts')},
@@ -78,7 +84,16 @@ multisite_builtin_views.update({
('num_problems', 'problemsofhost')],
'play_sounds': False,
'public': True,
- 'show_filters': ['siteopt', 'hostregex',
'opthostgroup'],
+ 'show_filters': ['host_scheduled_downtime_depth',
+ 'host_in_notification_period',
+ 'hoststate',
+ 'siteopt',
+ 'host_acknowledged',
+ 'hostregex',
+ 'host_notifications_enabled',
+ 'opthostgroup',
+ 'host_check_command',
+ 'opthost_contactgroup'],
'sorters': [('site', False), ('site_host',
False)],
'title': _('All hosts (Mini)'),
'topic': _('Hosts')},
@@ -1370,7 +1385,16 @@ multisite_builtin_views.update({
('host_state', None)],
'play_sounds': False,
'public': True,
- 'show_filters': ['siteopt'],
+ 'show_filters': ['host_scheduled_downtime_depth',
+ 'host_in_notification_period',
+ 'hoststate',
+ 'siteopt',
+ 'host_acknowledged',
+ 'hostregex',
+ 'host_notifications_enabled',
+ 'opthostgroup',
+ 'host_check_command',
+ 'opthost_contactgroup'],
'sorters': [],
'title': _('All hosts (tiled)'),
'topic': _('Hosts')},