I’m attempting to set up a simple master to agent set up using linux machines. The icinga2 daemon -C commands on both machine works without outputing any errors and on the master it shows that there is 2 hosts/endpoints/zones which is correct. The features enabled on the client are “api checker mainlog debuglog notification”. On the master the features are “api command debuglog mainlog ido-mysql notification”. On the icingaweb2 interface the agent machine shows up but it stays in a permanent DOWN state.
There are two messages from the debug log which I thought I should mention as they could be relevant. On the master debug log i see "debug/ApiListener: Not connecting to endpoint ‘clienthostname.com’ because the host/port attributes are missing.’
Second message is in the clients debug log. "debug/ApiListener: Not connecting to zone ‘master’ because it’s not in the same zone, a parent or a child zone.’
Machines can ping each other and networking is working correctly. Both machines icinga2 service is listening on port 5665.