>> The docs have an example for this very use case. >> Check out the apply rules and what you can do with dictionaries and arrays.
> Thanks for the answer , can you point me please to that example i must missed > that ,it would be very helpful Well, open a browser to http://docs.icinga.org/icinga2/latest then type Ctrl-f and type "apply" without quotes, you will find the first section that deals with "apply" rules. The example is in the "Using Apply For Rules" heading. The functionality provided by the configuration abilities in Icinga 2 are quite elaborate compared to the original code from Nagios, the docs cover a lot but you will still need to put the time in to discover all you can do with dictionaries and arrays and how these can dynamically manipulate service naming and configuration. jlc _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users