Module: check_mk
Branch: master
Commit: eb0df7b6ced7d5f4284a3c2901e091997137e6f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=eb0df7b6ced7d5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Nov 13 14:02:54 2010 +0100
Multisite: New view for all services of a site
---
ChangeLog | 1 +
web/plugins/views/builtin.py | 51 ++++++++++++++++++++++++++++++++++++++++-
2 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f425ab5..0ad7a4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,6 +77,7 @@
* Fixed repositioning the sidebar scroll state after refreshing the page
* Fixed mousewheel scrolling in opera/chrome
* Fixed resize bug on refresh in chrome
+ * New view for all services of a site
1.1.8:
Core, Setup, etc.:
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index b6caca1..ae262aa 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1125,7 +1125,7 @@ multisite_builtin_views = {
'column_headers': 'off',
'datasource': 'hosts',
'description': 'Link view showing all\r\nhosts of one
site',
- 'group_painters': [('site_icon', None),
('sitealias', None)],
+ 'group_painters': [('site_icon', None),
('sitealias', 'sitesvcs')],
'hard_filters': ['summary_host'],
'hard_filtervars': [
('is_summary_host', '0'),],
@@ -1688,5 +1688,52 @@ multisite_builtin_views = {
'logtime'],
'sorters': [],
'title': 'Search Global Logfile',
- 'topic': 'Other'}
+ 'topic': 'Other'},
+
+ 'sitesvcs': {'browser_reload': 60,
+ 'column_headers': 'pergroup',
+ 'datasource': 'services',
+ 'description': 'All services of a given site.',
+ 'group_painters': [('host_with_state',
'hoststatus')],
+ 'hard_filters': [],
+ 'hard_filtervars': [('optservicegroup', ''),
+ ('neg_optservicegroup', ''),
+ ('host', ''),
+ ('service', ''),
+ ('st0', 'on'),
+ ('st1', 'on'),
+ ('st2', 'on'),
+ ('st3', 'on'),
+ ('stp', 'on'),
+ ('opthostgroup', ''),
+ ('neg_opthostgroup', ''),
+ ('host_check_command', ''),
+ ('service_output', '')],
+ 'hidden': True,
+ 'hide_filters': ['site'],
+ 'layout': 'table',
+ 'linktitle': 'Services of Site',
+ 'mustsearch': False,
+ 'name': 'sitesvcs',
+ 'num_columns': 2,
+ 'owner': 'maintenance',
+ 'painters': [('service_state', None),
+ ('service_description', 'service'),
+ ('svc_plugin_output', None),
+ ('svc_state_age', None),
+ ('svc_check_age', None),
+ ('service_icons', None),
+ ('perfometer', None)],
+ 'play_sounds': False,
+ 'public': True,
+ 'show_filters': ['optservicegroup',
+ 'host',
+ 'serviceregex',
+ 'svcstate',
+ 'opthostgroup',
+ 'host_check_command',
+ 'output'],
+ 'sorters': [('site_host', False), ('svcdescr',
False)],
+ 'title': 'Services of Site',
+ 'topic': 'Services'}
}