Master - Satellite - Agent

Hello,

At the moment I’m in Education, I’ve bought the Icinga-Book and tried my best to fix my problem at work. I Have to setup a satellite with two agents. I can only access the master with icingaweb2.

Version of:
Master(icingaweb2): 2.10.1
Master(icinga2):r2.13.2-1
Satellite: r2.12.3-1
Agent: r2.12.3-1

I’ve checked all ports using telnet and everything is open for 5665. My satellite is in its own network and only reachable over hiddenaddress.myfritz.net

I believe my problem is inside the satellite and/or agents zones.conf. My boss told me, that the master should be fine.

In Director, I’ve created

  • a zone called “examplezone.local”
    Globalzone: no
    Parent: master

  • an endpoint called “examplesatellite”
    address: hiddenaddress.myfritz.net
    port 5665
    log: log 1h
    api user: master
    clusterzone: examplezone.local

after that I’ve started to setup the satellite zones.conf:

object Endpoint "hidden-master" {
        host = "hidden-master.com"
        port = "5665"
}

object Zone "master" {
        endpoints = [ "hidden-master" ]
}

object Endpoint "examplesatellite.examplezone.local" {
}

object Zone "examplezone.local" {
        endpoints = [ "examplesatellite.examplezone.local" ]
        parent = "master"
}

object Zone "global-templates" {
        global = true
}

object Zone "director-global" {
        global = true
}

running “icinga2 object list --type Zone” on satellite: (heres maybe the error because no agent visible in endpoints)

Object 'examplezone.local' of type 'Zone':
  % declared in '/etc/icinga2/zones.conf', lines 18:1-18:33
  * __name = "examplezone.local"
  * endpoints = [ "examplesatellite.examplezone.local" ]
    % = modified in '/etc/icinga2/zones.conf', lines 19:2-19:57
  * global = false
  * name = "examplezone.local"
  * package = "_etc"
  * parent = "master"
    % = modified in '/etc/icinga2/zones.conf', lines 20:2-20:18
  * source_location
    * first_column = 1
    * first_line = 18
    * last_column = 33
    * last_line = 18
    * path = "/etc/icinga2/zones.conf"
  * templates = [ "examplezone.local" ]
    % = modified in '/etc/icinga2/zones.conf', lines 18:1-18:33
  * type = "Zone"
  * zone = ""

after that I’ve started to setup the agents zones.conf:

object Endpoint "examplesatellite.examplezone.local" {
}

object Zone "examplezone.local" {
        endpoints = [ "examplesatellite.examplezone.local" ]
}

object Endpoint "exampleagent.examplezone.local" {
}

object Zone "exampleagent.examplezone.local" { 
        endpoints = [ "exampleagent.examplezone.local" ] 
        parent = "examplezone.local" 
} 
 
object Zone "global-templates" { 
        global = true 
} 
 
object Zone "director-global" { 
        global = true 
} 

running “icinga2 object list --type Zone” on agent:

Object 'examplezone.local' of type 'Zone':
  % declared in '/etc/icinga2/zones.conf', lines 9:1-9:33
  * __name = "examplezone.local"
  * endpoints = [ "examplesatellite.examplezone.local" ]
    % = modified in '/etc/icinga2/zones.conf', lines 10:2-10:57
  * global = false
  * name = "examplezone.local"
  * package = "_etc"
  * parent = ""
  * source_location
    * first_column = 1
    * first_line = 9
    * last_column = 33
    * last_line = 9
    * path = "/etc/icinga2/zones.conf"
  * templates = [ "examplezone.local" ]
    % = modified in '/etc/icinga2/zones.conf', lines 9:1-9:33
  * type = "Zone"
  * zone = ""

I really hope you can help me out. At the company, there is nobody who could help me. There was only one, and he left it a few month ago.

Best regards
mdi

I didn’t really get your configuration, so in general you need to configure every master and satellite zone and endpoint objects in zones.conf only. And no manual configuration of zone and endpoint objects for agents since this is done by the director.

It was perfect configured.
The problem was my endpoints wrong name.

master zone of an agent is the satellite zone.
why should I configure this zone on an agent?