Hello,
we are running a simple Master<->Agent setup for years now.
Due to changes in infrastructure we now want to monitor a additional data center.
I have build up our first satellite zone for this data center.
The agents in the satellite should only contact the satellite.
The satellite then reports log results of the agents to the master.
Agent in satellite zone can not reach master directly.
Master should not contact Satellite (no Top=>Down but Down=>Up for this data center)
Based on these requirements I have setup the following configuration:
Master
zones.conf
object Endpoint “master-host” {
}
object Endpoint “sat-host” {
}
object Endpoint “sat-agent-host” {
}
object Zone “sat.zone” {
parent = “master”
endpoints = [ “sat-host”,“sat-agent-host” ]
}
object Zone “master” {
endpoints = [ “master-host”]
}
object Zone “global-templates” {
global = true
}
Satellite
zones.conf
object Endpoint “master-host” {
host = “1.2.3.4”
port = “5665”
}
object Endpoint “sat-host” {
}
object Endpoint “sat-agent-host” {
}
object Zone “master” {
endpoints = [ “master-host” ]
}
object Zone “sat.zone” {
endpoints = [ “sat-host”,“sat-agent-host” ]
parent = “master”
}
object Zone “global-templates” {
global = true
}
object Zone “director-global” {
global = true
}
Agent in Sat
zones.conf
object Endpoint “sat-host” {
host = “2.3.4.5”
port = “5665”
}
object Endpoint “sat-agent-host” {
}
object Zone “sat.zone” {
endpoints = [ “sat-host” ]
}
object Zone “sat-agent-host” {
endpoints = [ “sat-agent-host” ]
parent = “sat.zone”
}
object Zone “global-templates” {
global = true
}
object Zone “director-global” {
global = true
}
Details master:
CentOS7.9
Icinga version 2.13.2-1
Details sat:
CentOS7.9
Icinga version 2.13.2-1
details agent in sat:
Win2019
Icinga version 2.13.1
After settings this up the result is the following:
IcingaWeb displays the error message "Remote Icinga instance ‘client in satellite zone’ is not connected to ‘satellite’
" for all enabled checks. Only the “hostalive”-check seems to be working fine. I am getting a “PING OK” for all 3 involved Icinga2 apps: master, sat & agent in sat.
But why are the other checks not working ?
I can see no errors in any log that communication is not working. icinga2.log of Satellite & Agent do indicate working communication (which is actually confirmed by the successful ping check). Also telnet 5665 between all components is working (atm we have allowed bi-directional communication on network layer eventhough I expect only the Agent to Contact satellite to contact master (and not master performing any connections to the satellite).
I will be thankful for any ideas. This took much longer & was much more complicated than I expected. I could setup network/firewall to enable master to directly reach the other data center (and avoid satellite configuration) but before I do this I will ask you guys if we can somehow get the Sat-config running. It can’t be that hard, right ?
Thanks in advance !
Regards,
Jan