Hello together,

I'm right now migration our Icinga1 configuration for the new format and I'm wondering if there is the possibilty of combining match rules with Arrays:

   object Host "hostnameX" {
   [...]
        groups = ["application_server", "centos_customer"]
   }

   object Host "hostnameY" {
   [...]
        groups = ["application_server", "debian_customer"]
   }


These Groups appended with _TYPE are created by our CMDB. I would like to match, if there is any Element within the host.groups Array matching the match string:

   apply Service "serviceW" {

   [...]

        assign where match("*_customer", host.groups)

   }

With this syntax it's not working for me.


Thanks in advance


Best regards

Dirk

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to