Hi,
checkmk: 2.1.0p9
host: ubuntu 18.04
we have all our hosts added by their FQDN, and would like to add rules based on the domain of a host.
For example I have four hosts in two different folders:
-
hostA.stage.example.com
→ folder named storage -
hostB.stage.example.com
→ folder named compute -
hostA.prod.example.com
→ folder named storage -
hostB.prod.example.com
→ folder named compute
Now I want to silence all alerts for the staging hosts.
In the respective configuration screen I can only select explicit hosts, but can’t use a regex like *.stage.example.com
.
I could use tags, but I can’t dynamically add tags to hosts based on a regexp. I can only have rules for explicit hosts.
I also would like to avoid, to create separate folders for stage, because I would need to double all the rules we have in the folders.
Anything I can do?