dcz01
February 5, 2025, 6:49am
1
Hi,
I’m using the latest icinga version on an up-tp-date debian os with an complete setup like this:
2 masters in master zone
2 satellites in dc zone
Now the problem is that the new second satellite in the dc zone is not correctly taking over the state of the first sat when a failover case is present.
The load balancing is working fine.
Also the checks for cluster zone is telling me that the zone dc is not connected when the first sat in dc zone is down and in the cluster check the sat is also not listed.
The cluster check also does not list the second master.
Is there a step or something i forgot to do that this can be solved?
Regards
dcz01
lorenz
February 5, 2025, 8:43am
2
I would bet on wrong configuration (sorry).
Could you paste /etc/icinga2/zones.conf
of all four machines in here?
It should be the nearly the same on both satellites and both masters
dcz01
February 5, 2025, 9:13am
3
Sure, the config for /etc/icinga2/zones.conf for all machines:
master1:
/*
* Generated by Icinga 2 node setup commands
* on 2018-01-10 17:39:07 +0100
*/
object Endpoint "master1" {
host = "master1"
}
object Endpoint "master2" {
host = "master2"
}
object Endpoint "satellite1" {
host = "satellite1"
}
object Endpoint "satellite2" {
host = "satellite2"
}
object Zone "masterzone" {
endpoints = [ "master1", "master2" ]
}
object Zone "satellitezone" {
endpoints = [ "satellite1", "satellite2" ]
parent = "masterzone"
}
object Zone "global-config" {
global = true
}
object Zone "global-templates" {
global = true
}
master2:
/*
* Generated by Icinga 2 node setup commands
* on 2018-01-10 17:39:07 +0100
*/
object Endpoint "master1" {
host = "master1"
}
object Endpoint "master2" {
host = "master2"
}
object Endpoint "satellite1" {
host = "satellite1"
}
object Zone "masterzone" {
endpoints = [ "master1", "master2" ]
}
object Zone "satellitezone" {
endpoints = [ "satellite1" ]
parent = "masterzone"
}
object Zone "global-config" {
global = true
}
object Zone "global-templates" {
global = true
}
satellite1:
/*
* Generated by Icinga 2 node setup commands
* on 2023-03-16 15:42:07 +0000
*/
object Endpoint "master1" {
host = "master1"
}
object Endpoint "master2" {
host = "master2"
}
object Zone "masterzone" {
endpoints = [ "master1", "master2" ]
}
object Endpoint "satellite1" {
}
object Endpoint "satellite2" {
host = "satellite2"
}
object Zone "satellitezone" {
endpoints = [ "satellite1", "satellite2" ]
parent = "masterzone"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
satellite2:
/*
* Generated by Icinga 2 node setup commands
* on 2025-01-13 14:33:27 +0100
*/
object Endpoint "master1" {
host = "master1"
port = "5665"
}
object Endpoint "master2" {
host = "master2"
port = "5665"
}
object Zone "masterzone" {
endpoints = [ "master1", "master2" ]
}
object Endpoint "satellite2" {
}
object Endpoint "satellite1" {
host = "satellite1"
}
object Zone "satellitezone" {
endpoints = [ "satellite1", "satellite2" ]
parent = "masterzone"
}
object Zone "global-templates" {
global = true
}
object Zone "director-global" {
global = true
}
1 Like
lorenz
February 5, 2025, 9:41am
4
satellitzone
on Master1:
object Zone "satellitezone" {
endpoints = [ "satellite1", "satellite2" ]
parent = "masterzone"
}
versus Master2:
object Zone "satellitezone" {
endpoints = [ "satellite1" ]
parent = "masterzone"
}
They should be the same.
3 Likes