Apply services use regex with Director

Hello, I am playing with Icinga Director and I want to use regex to filter which host will be applied. Will we can do with Director.
Example: I have compute01 >> compute18 and I just want to apply service for compute01 >> compute06.

Screenshot 2023-10-09 111047

Am I wrong?

Thank you.

  • Director version (System - About): 1.10.0
  • Icinga Web 2 version and modules (System - About): 2.11.1
  • Icinga 2 version (icinga2 --version): icingadb 1.1.0
  • Operating System and version: Ubuntu 22.04
  • Webserver, PHP versions: Apache 2.4 - PHP 8.1.2-1ubuntu2.14

icinga2 would support regex but the director currently doesnt:
https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#apply-rules-expressions-examples

the closest you get is using the "*" in the query like "webserver*", this will be translated to match("webserver*", host.name)

here is the correspondig code which lacks a regex implementation:

1 Like

Thank you much.
Will we have plan for this feature in future. It will be nice.