Hi,

> On 27 Mar 2017, at 12:23, Christian Moreno Moreno 
> <christian.mor...@idealo.de> wrote:
> 
> Hello,
> 
> I create some hosts and hostgroups via API, but I have one question. I 
> created the hostgroups in the global-templates zone, and the api created one 
> file like:
> 
> object HostGroup "infra" {
>     display_name = "infra"
>     version = 1490609766.016400
>     zone = "global-templates"
> }
> 
> 
> but it creates the file unter one of the nodes and not under the zone folder:
> 
> /var/lib/icinga2/api/packages/_api/icinga-01-1452496651-2/conf.d/hostgroups/infra.conf
> 
> and I think that for this reason its not replicated to the other nodes.
> 
> Should be not created under:
> 
> /var/lib/icinga2/api/zones/global-templates/xx ??

No, object replication for runtime create objects works in a different way than 
cluster config sync via /etc/icinga2/zones.d.

Which versions of Icinga 2 are involved here? Please also show the zones.conf 
and api.conf from affected nodes.

Kind regards,
Michael
 
> 
> Regards,
> Christian
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users

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

Reply via email to