Module: check_mk
Branch: master
Commit: b8a480881bf269129584c5f301699a8fe50474a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b8a480881bf269…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Oct 14 12:07:44 2014 +0200
#1185 mobile ui: Added a new view to see events from the Event Console
---
.werks/1185 | 9 ++++
ChangeLog | 1 +
web/plugins/views/mobile.py | 109 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 119 insertions(+)
diff --git a/.werks/1185 b/.werks/1185
new file mode 100644
index 0000000..550190d
--- /dev/null
+++ b/.werks/1185
@@ -0,0 +1,9 @@
+Title: mobile ui: Added a new view to see events from the Event Console
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.5i6
+Date: 1413281133
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index c369389..0fd0eaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -112,6 +112,7 @@
* 1405 Checkbox for settings downtimes on the hosts of the selected services...
* 1410 Output log text of scheduled downtime log entries...
* 1411 New builting views for the history of scheduled downtimes
+ * 1185 mobile ui: Added a new view to see events from the Event Console
* 1067 FIX: Fixed login problem in LDAP connector when no user filter specified...
* 1094 FIX: sidebar snaping 'Tree of folders': fixed exception
* 1154 FIX: Availability: Fixed unwanted redirect to edit annotation page after
editing availability options...
diff --git a/web/plugins/views/mobile.py b/web/plugins/views/mobile.py
index 609c91d..607bf11 100644
--- a/web/plugins/views/mobile.py
+++ b/web/plugins/views/mobile.py
@@ -708,6 +708,115 @@ multisite_builtin_views.update({
'topic': _('Other')}),
+
+ 'ec_event_mobile': {'browser_reload': 0,
+ 'column_headers': 'pergroup',
+ 'context': {},
+ 'datasource': 'mkeventd_events',
+ 'description': u'Details about one
event\n',
+ 'group_painters': [],
+ 'hidden': True,
+ 'hidebutton': False,
+ 'icon': 'mkeventd',
+ 'layout': 'mobiledataset',
+ 'linktitle': u'Event Details',
+ 'mobile': True,
+ 'name': 'ec_event_mobile',
+ 'num_columns': 1,
+ 'painters': [('event_state', None, None),
+ ('event_host', None, None),
+ ('host_address', 'hoststatus',
None),
+ ('host_contacts', None, None),
+ ('host_icons', None, None),
+ ('event_text', None, None),
+ ('event_comment', None, None),
+ ('event_owner', None, None),
+ ('event_first', None, None),
+ ('event_last', None, None),
+ ('event_id', None, None),
+ ('event_icons', None, None),
+ ('event_count', None, None),
+ ('event_sl', None, None),
+ ('event_contact', None, None),
+ ('event_contact_groups', None, None),
+ ('event_application', None, None),
+ ('event_pid', None, None),
+ ('event_priority', None, None),
+ ('event_facility', None, None),
+ ('event_rule_id', None, None),
+ ('event_phase', None, None),
+ ('host_services', None, None)],
+ 'public': True,
+ 'single_infos': ['event'],
+ 'sorters': [],
+ 'title': u'Event Details',
+ 'topic': u'Event Console',
+ 'user_sortable': True},
+ 'ec_events_mobile': {'browser_reload': 60,
+ 'column_headers': 'pergroup',
+ 'context': {'event_application':
{'event_application': ''},
+ 'event_comment':
{'event_comment': ''},
+ 'event_contact':
{'event_contact': ''},
+ 'event_count':
{'event_count_from': '',
+ 'event_count_to':
''},
+ 'event_facility':
{'event_facility': ''},
+ 'event_first':
{'event_first_from': '',
+
'event_first_from_range': '3600',
+ 'event_first_until':
'',
+
'event_first_until_range': '3600'},
+ 'event_host_regex':
{'event_host_regex': ''},
+ 'event_id': {'event_id':
''},
+ 'event_last':
{'event_last_from': '',
+ 'event_last_from_range':
'3600',
+ 'event_last_until':
'',
+
'event_last_until_range': '3600'},
+ 'event_phase':
{'event_phase_ack': 'on',
+ 'event_phase_closed':
'on',
+ 'event_phase_counting':
'',
+ 'event_phase_delayed':
'',
+ 'event_phase_open':
'on'},
+ 'event_priority':
{'event_priority_0': 'on',
+ 'event_priority_1':
'on',
+ 'event_priority_2':
'on',
+ 'event_priority_3':
'on',
+ 'event_priority_4':
'on',
+ 'event_priority_5':
'on',
+ 'event_priority_6':
'on',
+ 'event_priority_7':
'on'},
+ 'event_rule_id':
{'event_rule_id': ''},
+ 'event_sl': {'event_sl':
''},
+ 'event_sl_max':
{'event_sl_max': ''},
+ 'event_state':
{'event_state_0': 'on',
+ 'event_state_1':
'on',
+ 'event_state_2':
'on',
+ 'event_state_3':
'on'},
+ 'event_text': {'event_text':
''},
+ 'hostregex': {'host_regex':
''}},
+ 'datasource': 'mkeventd_events',
+ 'description': u'Table of all currently open
events (handled and unhandled)\n',
+ 'group_painters': [],
+ 'hidden': False,
+ 'hidebutton': False,
+ 'icon': 'mkeventd',
+ 'layout': 'mobilelist',
+ 'linktitle': u'Events',
+ 'mobile': True,
+ 'name': 'ec_events_mobile',
+ 'num_columns': 1,
+ 'owner': 'omdadmin',
+ 'painters': [('event_id',
'ec_event_mobile', None),
+ ('event_state', None, None),
+ ('event_host',
'ec_events_of_host', None),
+ ('event_application', None, None),
+ ('event_text', None, None),
+ ('event_last', None, None)],
+ 'public': True,
+ 'single_infos': [],
+ 'sorters': [],
+ 'title': u'Events',
+ 'topic': u'Event Console',
+ 'user_sortable': True}
+
})