Icinga2 HA not syncing satellites zones and config between the 2 masters

Hi,
Am setting up a new icinga cluster with HA (2 icinga masters).

Master-a: /etc/icinga2/zones.conf:

object Endpoint "55i.icingapoc" {
}

object Endpoint "55j.icingapoc" {
}

object Zone "master" {
        endpoints = [ "55i.icingapoc", "55j.icingapoc" ]
}

object Zone "global-templates" {
        global = true
}

object Zone "director-global" {
        global = true
}

Master-b: /etc/icinga2/zones.conf:

object Endpoint "55i.icingapoc" {
        host = "192.168.100.4"
        port = "5665"
}

object Endpoint "55j.icingapoc" {
}

object Zone "master" {
        endpoints = [ "55i.icingapoc", "55j.icingapoc" ]
}

object Zone "global-templates" {
        global = true
}

object Zone "director-global" {
        global = true
}

Am facing a probleme. As i created a new satellite zone on Master-a and a new zone directory in “zones .d” caled “cluster1” this dir and all the zone configuration (hosts, hostgroupes, endpoints …) in it is not replicated on the second master (Master-b)

Master-a: /etc/icinga2/zones.conf:

[...]
/* Satellite1 */

object Endpoint "monitoring1.cluster1.test" {
}

object Endpoint "monitoring2.cluster1.test" {
}

object Zone "cluster1" {
  parent = "master"
  endpoints = [ "monitoring1.cluster1.test",
                "monitoring2.cluster1.test" ]
}

Master-a:

# ls -lrta /etc/icinga2/zones.d/
total 4
drwxr-xr-x. 2 icinga icinga 110 17 juin  03:06 master
drwxr-xr-x. 2 icinga icinga  96 17 juin  04:00 cluster1
drwxr-xr-x. 2 icinga icinga  48 17 juin  04:01 global-templates
drwxr-x---. 5 icinga icinga  74 17 juin  04:01 .
drwxr-x---. 7 icinga icinga 235 17 juin  04:08 ..

Master-b:

# ls -lrta /var/lib/icinga2/api/zones
total 0
drwx------. 3 icinga icinga  54 17 juin  04:02 global-templates
drwx------. 3 icinga icinga  54 17 juin  04:02 master
drwx------. 4 icinga icinga  44 17 juin  04:02 .
drwxr-x---. 6 icinga icinga 165 17 juin  04:02 ..

Is this normal?
If yes, how das the second muster (Master-b) get the child zones configuration so it can diribute it to the satelites incase the first master fails.
what can i do to make the 2 masters sync all the config?

Please help.
And thanks in advance.

https://icinga.com/docs/icinga-2/latest/doc/06-distributed-monitoring/#three-levels-with-masters-satellites-and-agents

If you scroll a bit down the section three-levels-with-masters-satellites-and-agents you will see how the 2 master and the satellites should be configured to communicate.

  • You are telling master-b to communicate with master-a, as in master-b you specified the IP and Port of master-a, but you put the config in master-a zones.d who has no clue how to communicate with master-b
  • you have no reference in the masters zone on who are the satellites and how to communicate with them