[icinga-checkins] icinga.org: icinga-core/rbartels/cgi: classic ui: fixed search not returning all results, only first match ( without * at the end) #844

git at icinga.org git at icinga.org
Sat Nov 5 17:16:00 CET 2011


Module: icinga-core
Branch: rbartels/cgi
Commit: 03224af30f3daf547471dab051acc54856c7b208
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=03224af30f3daf547471dab051acc54856c7b208

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Sat Nov  5 17:14:22 2011 +0100

classic ui: fixed search not returning all results, only first match (without * at the end) #844

refs: #844

Done a rewrite of the search part. If user is searching something and a host or service
matches, then the status entry gets marked as a match. When statusdata gets displayed
it only shows the matching one's. Added "search_matched" to both statusdata struct.

The filter uses regular expressions. Following items get checked against search string:

* Host
** Host Name
** Display Name
** Alias
** Address
** Address6

* Service
** Description
** Display Name
** Host Name
** combination of hostname and service description "hostname servicedescription"

If all of this fails it tries to find a hostgroup or servicegroup which has to match the
exact search string. This is still the old behavior.

---

 Changelog            |    1 +
 cgi/status.c         |  283 +++++++++++++++++++++++++-------------------------
 html/menu.html.in    |    5 +-
 include/statusdata.h |    2 +
 4 files changed, 147 insertions(+), 144 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=03224af30f3daf547471dab051acc54856c7b208




More information about the icinga-checkins mailing list