Module: check_mk
Branch: master
Commit: a2ae0064a55a46d5e4edb9229ecb84b8cc7b1032
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a2ae0064a55a46…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 13 07:49:46 2017 +0100
Sorting events in event views by time (needed for discovered EC)
Change-Id: Icedf2805e0ea7348c4762ceadd7b2ac5d294cb7f
---
web/plugins/views/mkeventd.py | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/web/plugins/views/mkeventd.py b/web/plugins/views/mkeventd.py
index bf8b8ed..3a03926 100644
--- a/web/plugins/views/mkeventd.py
+++ b/web/plugins/views/mkeventd.py
@@ -724,6 +724,9 @@ if mkeventd_enabled:
( 'event_phase_counting', "" ),
( 'event_phase_delayed', "" ),
],
+ 'sorters': [
+ ('event_last', False)
+ ],
})
multisite_builtin_views['ec_events_of_monhost'] = mkeventd_view({
@@ -764,6 +767,9 @@ if mkeventd_enabled:
'siteopt',
'host',
],
+ 'sorters': [
+ ('event_last', False)
+ ],
})
multisite_builtin_views['ec_events_of_host'] = mkeventd_view({
'title': _('Events of Host'),
@@ -803,6 +809,9 @@ if mkeventd_enabled:
'siteopt',
'event_host',
],
+ 'sorters': [
+ ('event_last', False)
+ ],
})
multisite_builtin_views['ec_event'] = mkeventd_view({
@@ -1144,7 +1153,9 @@ if mkeventd_enabled:
('event_last', None, None)],
'public': True,
'single_infos': [],
- 'sorters': [],
+ 'sorters': [
+ ('event_last', False)
+ ],
'title': u'Events',
'topic': u'Event Console',
'user_sortable': True}