Here is what I'd like to do :
It's simply a Master zone and another zone called Zone (which has Master as parent) with a global zone called global-templates.
I'll use it with the config sync mode.
In the zone Zone, I will have two endpoints : Endpoint A and Endpoint B.
I made a lot of tests, so I know how to configure all the files (certificats, conf files, etc) to make it works.
Let's consider now that I want to monitor the two Endpoints as Hosts and then link services to those hosts (disk, load, cpu, ...).
So I'll create in the folder /etc/icinga2/zone.d/Zone/ a hosts.conf file that will contain the objects definition for both hosts (Host A and Host B).
This file will then (as it is the config sync mode that is chosen) be sent to the two Endpoints, isn't it ?
SO :How will the hosts definition be handled ?
I'm afraid that, for example, the Endpoint A will receive the hosts.conf file and try to "instanciate/create" both hosts and then will get config errors.
Moreover, I'm afraid that 4 hosts will appear in Icinga web (two for each endpoints)
Are you using, or have you using, Icinga2 in a such way ? If yes, how are you doing this :p ?
I'll be glad to read your answers.