Module: check_mk
Branch: master
Commit: 265774a99d93de96dd23183a598ebaab8501bb46
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=265774a99d93de…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Wed Oct 9 19:02:58 2013 +0200
Filtering in views by Hostalias is possible now too
---
ChangeLog | 3 +++
web/plugins/views/filters.py | 3 +++
2 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2d238bd..1ee5e64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -28,6 +28,9 @@
* FIX: ldap attribute plugins: fixed crash when parameters are None
* FIX: avoid duplicate output of log message in log tables
* FIX: fixed problem with ldap userid encoding
+ * Filtering in views by Hostalias is possible now too
+ (however the filter is not displayed in any standard view - user needs
+ to enable it by customizing the needed views himself)
WATO:
* Rule "State and count of processes": New configuration options:
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 958e950..5b36e3c 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -59,6 +59,9 @@ declare_filter(100, FilterText("hostregex",
_("Hostname"), "host",
declare_filter(101, FilterText("host", _("Hostname (exact
match)"), "host", "host_name",
"host", "="),
_("Exact match, used for linking"))
+declare_filter(102, FilterText("hostalias", _("Hostalias"),
"host", "host_alias", "hostalias",
"~~"),
+ _("Search field allowing regular expressions and partial
matches"))
+
declare_filter(200, FilterText("serviceregex", _("Service"),
"service", "service_description", "service",
"~~"),
_("Search field allowing regular expressions and partial
matches"))