Module: check_mk
Branch: master
Commit: 73041a3dcd838516eeeee50de8c17a8ee63c2af5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73041a3dcd8385…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Aug 22 12:27:12 2013 +0200
Added filter for filtering hostgroups by regexes
---
web/plugins/views/filters.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index c454c5a..19caaa4 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -66,6 +66,9 @@ declare_filter(201, FilterText("service", _("Service
(exact match)"),
_("Exact match, used for linking"))
+declare_filter(101, FilterText("hostgroupnameregex",
_("Hostgroup)"), "hostgroup", "hostgroup_name",
"hostgroup_name", "~~"),
+ _("Search field allowing regular expressions and
partial matches on the names of hostgroups"))
+
declare_filter(101, FilterText("servicegroupnameregex",
_("Servicegroup"), "servicegroup", "servicegroup_name",
"servicegroup_name", "~~"),
_("Search field allowing regular expression and partial
matches"))
@@ -74,8 +77,6 @@ declare_filter(101, FilterText("servicegroupname",
_("Servicegroup (enforced)"),
declare_filter(202, FilterText("output", _("Status detail"),
"service", "service_plugin_output", "service_output",
"~~"))
-
-
class FilterIPAddress(Filter):
def __init__(self):
Filter.__init__(self, "host_address", _("Host IP Address"),
"host", ["host_address", "host_address_prefix"],
["host_address"])