icingaweb2 icon indicating copy to clipboard operation
icingaweb2 copied to clipboard

[dev.icinga.com #11055] Search by regular expression

Open icinga-migration opened this issue 9 years ago • 7 comments

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11055

Created by krp on 2016-01-29 01:23:58 +00:00

Assignee: (none) Status: New Target Version: Backlog Last Update: 2016-07-19 16:45:59 +00:00 (in Redmine)


If I do a host search ("icingaweb2/monitoring/list/hosts") for "tor" I get all my top-of-rack switches...but I get much more. It'd be nice to search by regex ".*tor[1-9]$" instead. It would also be nice to search based on custom variables. For example I define a switch/router's role (ex. oob for my out-of-band switches) with custom variables. I have hostgroups setup for some things, but it'd be nice to just search for anything named tor[1-9] whos role is oob, rather than setting up a new hostgroup every time.

icinga-migration avatar Jan 29 '16 01:01 icinga-migration

Updated by elippmann on 2016-02-19 12:44:52 +00:00

  • Subject changed from Search by regex and custom variable to Search by regular expression
  • Category set to Monitoring
  • Target Version set to Backlog

Hi,

Thanks for the report. We may consider this for one of our next releases. Search by custom variables is possible, e.g. type _service_foo=abc in the search box.

Best, Eric

icinga-migration avatar Feb 19 '16 12:02 icinga-migration

Updated by ClemensBW on 2016-07-19 16:45:59 +00:00

+1

icinga-migration avatar Jul 19 '16 16:07 icinga-migration

+1

peterthomassen avatar Mar 08 '17 15:03 peterthomassen

In our environment we were talking about the same feature when searching by IP. For now we can search for 192.168.156.1 and get possibly 100 results, with regex we could search for 192.168.156.1$ and get only one result, so it would be a big improvement in this case.

dgoetz avatar Mar 01 '18 09:03 dgoetz

+1

bunghi avatar Jun 22 '18 12:06 bunghi

+1

idl0r avatar Apr 05 '22 07:04 idl0r

here it works with e.g.:

host=pp0*

version is:

 Icinga Web 2 Version | 2.10.1

bittorf avatar Jul 14 '22 06:07 bittorf