I don’t know if I am just doing it wrong or I don’t understand the labels feature…
I created a Predefined condition (CondA) to match services that start with a certain name, for example “IIS_Whatever”
I then created a Service labels rule that uses Predefined condition == CondA to add service label srv:whatever
I then created Predefined condition (CondB) to match services with tag srv:whatever
And finally created a Host labels rule that uses Predefined condition == CondB to add host label app:whatever
The first part works fine: I can see the proper services tagged.
But when I try to search for hosts with the label app:whatever, I get all my servers back, including those that don’t have that app running.
Is it possible to chain conditions that way or I just misunderstood how this works?
In the end I want a way of filtering hosts by services they’re running, because we have a pool of servers where we run multiple apps, and some of them are on 4 servers, some on 2, some on 6…