I want to be able to assign a service to a host that may be in one of several groups among its list of groups. So if host "A" is in groups "foo" and "bar" and service "check_foo" is assigned to hosts that are members of the groups "foo" and "baz", then host "A" should run service "check_foo". What would be the correct syntax for this case?

I have the following and it obviously is incorrect:

object Host "A" {
  groups += [ "foo", "bar" ]
}

apply Service "check_foo" {
  assign where host.groups in [ "foo", "baz" ]
}

I need the correct way to say "assign where <any list member of host.groups that matches any member of this list>".

I hope that makes sense. Anybody have any suggestions? Do I need to do this in the apply statement somehow to loop through members of host.groups? Or is there a better way?

Thanks.
Seth

--
Seth Galitzer
Systems Coordinator
Computing and Information Sciences
Kansas State University
http://www.cis.ksu.edu/~sgsax
[email protected]
785-532-7790
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to