On Thu, Jul 14, 2016 at 12:48 AM, Michael Friedrich <michael.friedr...@netways.de> wrote: > var hg_name = “myhostgroup" > var data = [] > for (h in get_objects(Host)) { > if (hg_name in h.groups) { > data.add(h.name) > } > }
Ok, thanks for the tip. Now another question: let's say I have an array or dictionary that contains a list of arbitrary names. I want to create a HostGroup Object for each name and then assign to hosts. Can Icinga do this at startup? _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users