Module: check_mk
Branch: master
Commit: e04bcd64f90a0c2896a9c307cad0c001c283117c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e04bcd64f90a0c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 2 16:05:34 2012 +0100
FIX: Fixed state filter in log views
---
ChangeLog | 1 +
web/plugins/views/filters.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8d0dca1..27c8b92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -93,6 +93,7 @@
error messages when the core is being restarted
* Events view now shows icon and text for "flapping" events
* Use buffer for HTML creation (this speeds up esp. HTTPS a lot)
+ * FIX: Fixed state filter in log views
Livestatus:
* Add missing column check_freshness to services table
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index d55820e..723aa03 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -531,7 +531,7 @@ class FilterLogState(Filter):
headers = []
for varsuffix, what, state, text in self._items:
if html.get_checkbox("logst_" + varsuffix) != False: # None = form
not filled in = allow
- headers.append("Filter: log_type = %s ALERT\nFilter: log_state =
%d\nAnd: 2\n" %
+ headers.append("Filter: log_type ~ %s .*\nFilter: log_state =
%d\nAnd: 2\n" %
(what.upper(), state))
if len(headers) == 0:
return "Limit: 0\n" # no allowed state