"match"-missing in Director?

Hello,
I can only find “=”, “in” & “contains” as operators for assigning services. But how can I configure “match” operator ?
In the past I have used “assign where match(“gtw”,host.name)” in my conf-files. Seems like this is not working with Director anymore ?!

Any help appreciated !

Regards,
Jan

p.s.: I am working with Director for 3 days now, at the moment this thing is much more pain than gain. Is it only me ?

Hello there :slight_smile:

When you use a * as wildcard in an assign rule in the Director it will automatically make a assign where match ... out of it.

“normal” assign
image

apply Service "icinga2-status" {
    import "icinga"

    assign where host.name == "icinga2-demo"

    import DirectorOverrideTemplate
}

assign where match:
image

apply Service "icinga2-status" {
    import "icinga"

    assign where match("icinga2-dem*", host.name)

    import DirectorOverrideTemplate
}

Thanks for the quick reply !