Created Configuration

Hello
I want to start with a simple master / agent setup and then go on from there. I have used the node wizard on master and agent and then configured the services according to the official documentation. The agent host is not shown in icinga2web and I dont get any feedback about it’s disk. Why does this not work? I followed the documentation to the letter and icinga2 daemon -C is both green on agent and master.

On Master: /etc/icinga2/zones.conf

/*
 * Generated by Icinga 2 node setup commands
 * on 2024-06-05 15:03:19 +0200
 */

object Endpoint "icinga2.unknown.de" {
        host = "10.10.10.7"
        port = "5665"
}

object Zone "master" {
        endpoints = [ "icinga2.unknown.de" ]
}

object Endpoint "icinga-test1.unknown.de" {
}

object Zone "icinga-test1.unknown.de" {
        endpoints = [ "icinga-test1.unknown.de" ]
        parent = "master"
}

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

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

On the agent: /etc/icinga2/zones.conf

/*
 * Generated by Icinga 2 node setup commands
 * on 2024-06-05 15:03:19 +0200
 */

object Endpoint "icinga2.unknown.de" {
        host = "10.10.10.7"
        port = "5665"
}

object Zone "master" {
        endpoints = [ "icinga2.unknown.de" ]
}

object Endpoint "icinga-test1.unknown.de" {
}

object Zone "icinga-test1.unknown.de" {
        endpoints = [ "icinga-test1.unknown.de" ]
        parent = "master"
}

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

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

And this is on the Master again in /etc/icinga2/zones.d/master/services.conf

apply Service "disk" {
  check_command = "disk"

  // Specify the remote agent as command execution endpoint, fetch the host custom variable
  command_endpoint = host.vars.agent_endpoint

  // Only assign where a host is marked as agent endpoint
  assign where host.vars.agent_endpoint
}

Hello and wecome.

You have not yet defined a host object for your agent host.
I guess you skipped the hosts.conf steps from the docs (Distributed Monitoring - Icinga 2) at “Now it is time to define the two agent hosts and apply service checks …”