Module: check_mk
Branch: master
Commit: 5296d031790408b0a4d663f6dcd52717c1548b02
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5296d031790408…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 25 15:12:51 2017 +0200
5418 New filters: Regex matches for host and service contacts
There are 2 new filters for the GUI views available which can be used
to filter lists of hosts or services using regex matches on their contacts.
Change-Id: I808c34e1c6fdc0c48a8c8c21c2c8e6295c7b6db5
---
.werks/5418 | 11 +++++++++++
web/plugins/visuals/filters.py | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/5418 b/.werks/5418
new file mode 100644
index 0000000..453ce76
--- /dev/null
+++ b/.werks/5418
@@ -0,0 +1,11 @@
+Title: New filters: Regex matches for host and service contacts
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1508937092
+Class: feature
+
+There are 2 new filters for the GUI views available which can be used
+to filter lists of hosts or services using regex matches on their contacts.
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 993abc9..34c2d18 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -403,8 +403,10 @@ declare_filter(205, FilterMultigroup("service",
_("Several Service Group
declare_filter(106, FilterGroupCombo("host_contact", _("Host Contact
Group"), False), _("Optional selection of host contact group"))
declare_filter(206, FilterGroupCombo("service_contact", _("Service Contact
Group"), False), _("Optional selection of service contact group"))
-declare_filter(107, FilterText("host_ctc", _("Host Contact"),
"host", "host_contacts", "host_ctc",
">="))
-declare_filter(207, FilterText("service_ctc", _("Service Contact"),
"service", "service_contacts", "service_ctc",
">="))
+declare_filter(107, FilterText("host_ctc", _("Host
Contact"), "host", "host_contacts",
"host_ctc", ">="))
+declare_filter(107, FilterText("host_ctc_regex", _("Host Contact
(Regex)"), "host", "host_contacts",
"host_ctc_regex", "~~"))
+declare_filter(207, FilterText("service_ctc", _("Service
Contact"), "service", "service_contacts",
"service_ctc", ">="))
+declare_filter(207, FilterText("service_ctc_regex", _("Service Contact
(Regex)"), "service", "service_contacts",
"service_ctc_regex", "~~"))
# Selection of one group to be used in the info "hostgroup" or
"servicegroup".