Add satellite on allready installed windows server

I’ve installed agent 2.10.5 on windows 2012R2 and windows 2016 server.
On my first installations, i’ve only installed one satellite however we had 2 satellites. I now get errormsg “status unknown” "remote icinga agent “server.domain” is not configured to connect to “icinga-satellite-2.domain.com”. is there an easy way to add the secondary satellite to the server configuration so i do not have to reinstall the agent?
i only see reference to this satellite in file C:\ProgramData\icinga2\etc\icinga2\icinga2.conf
should it also be referenced in another file?

I do not have 2 satellites, hence, it’s just theoretical: It should be enough to update your parent zone and endpoint definition on every agent. If you’ve installed the agents with icinga2-powershell-module than C:\ProgramData\icinga2\etc\icinga2\icinga2.conf needs to be updated. Otherwise C:\ProgramData\icinga2\etc\icinga2\zones.conf carries this config.

Example:

object Endpoint "sat1.example.com" {
	host = "192.168.1.1"
	port = "5665"
}

object Zone "<Name of your parent zone>" {
	endpoints = [ "sat1.example.com" ]
}

turns into:

object Endpoint "sat1.example.com" {
	host = "192.168.1.1"
	port = "5665"
}

object Endpoint "sat2.example.com" {
	host = "192.168.1.2"
	port = "5665"
}

object Zone "<Name of your parent zone>" {
	endpoints = [ "sat1.example.com", "sat2.example.com" ]
}
1 Like

thx Roland,

seems to be working by adding secondary satellite to icinga2.conf file.

only question now is how to add this automatically to more than 400 servers.
but that’s another topic.

thx for your help

This could be a job for e.g. Ansible, Chef, Puppet or even Powershell with its remote execution.