Module: check_mk
Branch: master
Commit: 22efd016f0a78b06a4a560dddc91e8e50c7a1cd8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=22efd016f0a78b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jan 8 16:03:26 2012 +0100
Added state filter to all log views
---
.bugs/399 | 7 +++++--
ChangeLog | 1 +
web/plugins/views/builtin.py | 23 ++++++++++++++---------
3 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/.bugs/399 b/.bugs/399
index c7ed4ba..3b10ae2 100644
--- a/.bugs/399
+++ b/.bugs/399
@@ -1,10 +1,13 @@
Title: Site ID must not have spaces in multisite.mk:sites
Component: docu
+State: done
+Class: todo
Benefit: 1
-State: open
Cost: 1
Date: 2011-10-21 16:24:23
Targetversion: 1.2.0
-Class: todo
Add this to docu.
+
+2012-01-08 15:55:08: changed state open -> done
+Done.
diff --git a/ChangeLog b/ChangeLog
index 87f62a8..492f7d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,7 @@
* Sounds in views are now enabled per default. The new configuration
variable enable_sounds can be set to False in multisite.mk in order
to disable sounds.
+ * Added filter for log state (UP,DOWN,OK,CRIT...) to all log views
1.1.13i2:
Core, Setup, etc.:
diff --git a/web/plugins/views/builtin.py b/web/plugins/views/builtin.py
index 25adddf..531cc7d 100644
--- a/web/plugins/views/builtin.py
+++ b/web/plugins/views/builtin.py
@@ -1623,7 +1623,7 @@ multisite_builtin_views.update({
],
'play_sounds': False,
'public': True,
- 'show_filters': ['logtime'],
+ 'show_filters': ['logtime', 'log_state'],
'sorters': [('log_time', False), ('log_lineno',
False)],
'title': _('Events of host')},
'svcevents': {'browser_reload': 0,
@@ -1654,7 +1654,7 @@ multisite_builtin_views.update({
],
'play_sounds': False,
'public': True,
- 'show_filters': ['logtime'],
+ 'show_filters': ['logtime', 'log_state'],
'sorters': [('log_time', False), ('log_lineno',
False)],
'title': _('Events of service')},
'hostsvcevents': {'browser_reload': 0,
@@ -1687,7 +1687,7 @@ multisite_builtin_views.update({
],
'play_sounds': False,
'public': True,
- 'show_filters': ['logtime', 'log_state'],
+ 'show_filters': ['logtime', 'log_state',
'log_state'],
'sorters': [('log_time', False), ('log_lineno',
False)],
'title': _('Events of host & services')},
'logfile': {'browser_reload': 0,
@@ -1841,7 +1841,8 @@ multisite_builtin_views.update({
'log_plugin_output',
'opthostgroup',
'host_check_command',
- 'logtime'],
+ 'logtime',
+ 'log_state'],
'sorters': [('alerts_crit', True),
('alerts_unknown', True),
('alerts_warn', True),
@@ -2515,7 +2516,8 @@ multisite_builtin_views.update({
'public': True,
'show_filters': ['serviceregex',
'log_plugin_output',
- 'logtime'],
+ 'logtime',
+ 'log_state'],
'sorters': [('log_time', False),
('log_lineno', False)],
'title': _('Notifications of host'),
'topic': _('Other')},
@@ -2562,7 +2564,8 @@ multisite_builtin_views.update({
'public': True,
'show_filters': ['serviceregex',
'log_plugin_output',
- 'logtime'],
+ 'logtime',
+ 'log_state'],
'sorters': [('log_time', False),
('log_lineno', False)],
'title': _('Notifications of host &
services'),
'topic': _('Other')},
@@ -2611,7 +2614,8 @@ multisite_builtin_views.update({
'show_filters': ['hostregex',
'serviceregex',
'log_plugin_output',
- 'logtime'],
+ 'logtime',
+ 'log_state'],
'sorters': [('log_time', False),
('log_lineno', False)],
'title': _('Host- and Service notifications'),
'topic': _('Other')},
@@ -2651,7 +2655,7 @@ multisite_builtin_views.update({
('log_plugin_output', None, '')],
'play_sounds': False,
'public': True,
- 'show_filters': ['log_plugin_output',
'logtime'],
+ 'show_filters': ['log_plugin_output',
'logtime', 'log_state'],
'sorters': [('log_time', False),
('log_lineno', False)],
'title': _('Service Notifications'),
'topic': _('Other')},
@@ -2699,7 +2703,8 @@ multisite_builtin_views.update({
'show_filters': ['host',
'serviceregex',
'log_plugin_output',
- 'logtime'],
+ 'logtime',
+ 'log_state'],
'sorters': [('log_time', False),
('log_lineno', False)],
'title': _('Notifications of contact'),
'topic': _('Other')},