Module: check_mk
Branch: master
Commit: 8b945077f29927178db5029c2c833c8154a47752
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b945077f29927…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 26 12:12:16 2013 +0200
Changed "unchecked services" view to use the staleness of services
---
web/plugins/views/builtin.py | 40 ++++++++++++++++++----------------------
1 file changed, 18 insertions(+), 22 deletions(-)
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 3652a18..46c9084 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1621,37 +1621,33 @@ multisite_builtin_views.update({
'uncheckedsvc': {'browser_reload': 30,
'column_headers': 'pergroup',
'datasource': 'services',
- 'description': _('Services that have not been checked
within the last 24 hours (pending services excluded).'),
- 'group_painters': [('host', 'host')],
- 'hard_filters': ['summary_host'],
- 'hard_filtervars': [('svc_last_check_until_range',
'3600'),
- ('svc_last_check_until', '24'),
- ('is_summary_host', '0'),
- ('st0', 'on'),
- ('st1', 'on'),
- ('st2', 'on'),
- ('st3', 'on'),
- ('stp', '')],
+ 'description': _('Services that have not been checked for
too long according to their configured check intervals.'),
+ 'group_painters': [('host', 'host',
'')],
+ 'hard_filters': ['service_staleness',
'summary_host'],
+ 'hard_filtervars': [('is_service_staleness',
'1'),
+ ('is_summary_host', '0')],
'hidden': False,
'hide_filters': [],
+ 'hidebutton': False,
+ 'icon': None,
'layout': 'table',
- 'linktitle': _('Unchecked services'),
+ 'mobile': False,
'mustsearch': False,
'name': 'uncheckedsvc',
'num_columns': 1,
- 'owner': '',
- 'painters': [('service_state', None),
- ('service_description', 'service'),
- ('svc_plugin_output', None),
- ('service_icons', None),
- ('svc_state_age', None),
- ('svc_check_age', None)],
+ 'owner': 'omdadmin',
+ 'painters': [('service_state', None, ''),
+ ('service_description', 'service',
''),
+ ('svc_plugin_output', None, ''),
+ ('service_icons', None, ''),
+ ('svc_state_age', None, ''),
+ ('svc_check_age', None, '')],
'play_sounds': False,
'public': True,
- 'show_filters': ['svc_last_check',
'svcstate'],
+ 'show_filters': [],
'sorters': [('site_host', False), ('svcdescr',
False)],
- 'title': _('Unchecked services'),
- 'topic': _('Problems')},
+ 'title': u'Stale services',
+ 'user_sortable': 'on'},
'events': {'browser_reload': 0,
'column_headers': 'pergroup',
'datasource': 'log_events',