Hi Team,
I’m seeing an issue with my icinga2 highavailability setup with two masters.
Below are the version details
Icinga2 - 2.11.2
Icingaweb2 - 2.7.3
PHP - 7.3.13
Apache - 2.4.41
OS - RHEL 7.6
Database - postgress
Below is my setup in Highavailaiblity with two masters
icinga2-master1.localdomain is the config master master node. with zone.d with zone name as bbmmaster
icinga2-master2.localdomain is the secondary master master node without config in zones.d. this node configured as satellite node to accept the connection and commands from master1
In both icinga2-master1.localdomain and icinga2-master2.localdomain having same zones.conf file - zones.conf
object Endpoint “icinga2-master1.localdomain” {
host = “xx.xx.xx.xx”
}
object Endpoint “icinga2-master2.localdomain” {
host = “xx.xx.xx.xx”
}
object Zone “mbbmaster” {
endpoints = [ “icinga2-master1.localdomain”, “icinga2-master2.localdomain” ]
}
object Zone “global-templates” {
global = true
}
object Zone “director-global” {
global = true
}
In icinga2-master2.localdomain could able to see all the bbmmaster folder and underlying configurations in below folder
/var/lib/icinga2/api/zones-stage/
But the failover is happening in reverseway…I mean always master1 is showing as down, master2 is showing as up.
when we stop the services in master2 then it is failovering to master1
the checks being loadbalanced in both master1 and master2
Can you please help me to understand the configuration perspective any issues are there?
With Regards,
Krishna Rajapantula