Module: check_mk
Branch: master
Commit: 438bd90b9dc348b65425eadda72e3ec1a11f3972
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=438bd90b9dc348…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 4 16:33:45 2011 +0100
Added special view for NagStaMon
---
web/plugins/views/builtin.py | 114 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 114 insertions(+), 0 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 1e7b55f..4058ae6 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1802,4 +1802,118 @@ multisite_builtin_views = {
('svcdescr', False)],
'title': 'Alert Statistics',
'topic': 'Problems'},
+
+# Special views for NagStaMon
+'nagstamon_hosts': {'browser_reload': 30,
+ 'column_headers': 'pergroup',
+ 'datasource': 'hosts',
+ 'description': 'The view is intended for NagStaMon as
web service.',
+ 'group_painters': [('host_state', None)],
+ 'hard_filters': ['summary_host'],
+ 'hard_filtervars':
[('is_host_scheduled_downtime_depth',
+ '-1'),
+ ('is_host_active_checks_enabled',
+ '-1'),
+ ('hst0', 'on'),
+ ('hst1', 'on'),
+ ('hst2', 'on'),
+ ('hstp', 'on'),
+ ('is_host_acknowledged', '-1'),
+ ('is_host_notifications_enabled',
+ '-1'),
+ ('is_summary_host', '0')],
+ 'hidden': True,
+ 'hide_filters': [],
+ 'hidebutton': True,
+ 'layout': 'table',
+ 'linktitle': 'Host problems for NagStaMon',
+ 'mustsearch': False,
+ 'name': 'nagstamon_hosts',
+ 'num_columns': 1,
+ 'owner': 'omdadmin',
+ 'painters': [('host', 'hoststatus',
''),
+ ('host_icons', None, ''),
+ ('host_check_age', None, ''),
+ ('host_state_age', None, ''),
+ ('host_attempt', None, ''),
+ ('host_state', None, ''),
+ ('host_plugin_output', None, ''),
+ ('host_in_downtime', None, ''),
+ ('host_acknowledged', None, ''),
+ ('host_address', None, ''),
+ ('sitename_plain', None, '')],
+ 'play_sounds': False,
+ 'public': True,
+ 'show_filters': ['host_scheduled_downtime_depth',
+ 'host_active_checks_enabled',
+ 'hoststate',
+ 'host_acknowledged',
+ 'host_notifications_enabled'],
+ 'sorters': [],
+ 'title': 'Host problems for NagStaMon',
+ 'topic': 'NagStaMon'},
+ 'nagstamon_svc': {'browser_reload': 30,
+ 'column_headers': 'pergroup',
+ 'datasource': 'services',
+ 'description': 'This view is intended for usage as web
service for NagStaMon.',
+ 'group_painters': [('service_state', None)],
+ 'hard_filters': ['summary_host'],
+ 'hard_filtervars':
[('is_service_in_notification_period',
+ '-1'),
+ ('is_service_notifications_enabled',
+ '-1'),
+ ('hst0', 'on'),
+ ('hst1', 'on'),
+ ('hst2', 'on'),
+ ('hstp', 'on'),
+ ('is_service_acknowledged',
'-1'),
+ ('is_service_active_checks_enabled',
+ '-1'),
+ ('is_host_notifications_enabled',
+ '-1'),
+ ('is_summary_host', '0'),
+ ('st0', ''),
+ ('st1', 'on'),
+ ('st2', 'on'),
+ ('st3', 'on'),
+ ('stp', ''),
+ ('is_in_downtime', '-1')],
+ 'hidden': True,
+ 'hide_filters': [],
+ 'hidebutton': True,
+ 'layout': 'table',
+ 'linktitle': 'Service problems for NagStaMon',
+ 'mustsearch': False,
+ 'name': 'nagstamon_svc',
+ 'num_columns': 1,
+ 'owner': 'omdadmin',
+ 'painters': [('host', 'hoststatus',
''),
+ ('service_description', 'service',
''),
+ ('service_icons', None, ''),
+ ('service_state', None, ''),
+ ('svc_check_age', None, ''),
+ ('svc_state_age', None, ''),
+ ('svc_attempt', None, ''),
+ ('svc_plugin_output', None, ''),
+ ('svc_flapping', None, ''),
+ ('svc_notifications_enabled', None, ''),
+ ('svc_is_active', None, ''),
+ ('sitename_plain', None, ''),
+ ('host_address', None, ''),
+ ('svc_check_command', None, '')],
+ 'play_sounds': True,
+ 'public': True,
+ 'show_filters': ['service_in_notification_period',
+ 'service_notifications_enabled',
+ 'hoststate',
+ 'service_acknowledged',
+ 'service_active_checks_enabled',
+ 'host_notifications_enabled',
+ 'svcstate',
+ 'in_downtime'],
+ 'sorters': [('svcstate', True),
+ ('stateage', False),
+ ('svcdescr', False)],
+ 'title': 'Service problems for NagStaMon',
+ 'topic': 'NagStaMon'},
}