New satellite not showing in Icinga2 web

This is a strange one - added to the Icinga2 section as I can’t believe this is a Web issue. I have recently added a new satellite in a new zone to my existing HA distributed setup (~700 hosts). For some reason, despite all appearing well ‘under the covers’, the new satellite is not showing in the web console.

Satellite information
---------------------
Ubuntu - 20.04.3 LTS (Focal Fossa)
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.2-1)
icinga daemon -C runs clear

satellite zones.conf:

/*
 * Generated by Icinga 2 node setup commands
 * on 2021-08-21 10:37:14 +0000
 */

object Endpoint "icinga1" {
}

object Endpoint "icinga2" {
}

object Zone "master" {
        endpoints = [ "icinga1", "icinga2" ]
}

object Endpoint "icingasat3" {
}

object Zone "satellite-gw" {
        endpoints = [ "icingasat3" ]
        parent = "master"
}

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

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

Master object definitions:

icinga2 object list --type zone --name satellite-gw
Object 'satellite-gw' of type 'Zone':
  % declared in '/etc/icinga2/zones.conf', lines 56:1-56:26
  * __name = "satellite-gw"
  * endpoints = [ "icingasat3" ]
    % = modified in '/etc/icinga2/zones.conf', lines 57:3-57:44
  * global = false
  * name = "satellite-gw"
  * package = "_etc"
  * parent = "master"
    % = modified in '/etc/icinga2/zones.conf', lines 58:3-58:19
  * source_location
    * first_column = 1
    * first_line = 56
    * last_column = 26
    * last_line = 56
    * path = "/etc/icinga2/zones.conf"
  * templates = [ "satellite-gw" ]
    % = modified in '/etc/icinga2/zones.conf', lines 56:1-56:26
  * type = "Zone"
  * zone = ""

icinga2 object list --type host --name icingasat3
Object 'icingasat3' of type 'Host':
  % declared in '/etc/icinga2/zones.d/satellite-gw/icingasat3.conf', lines 3:1-3:38
  * __name = "icingasat3"
  * action_url = ""
  * address = "x.x.x.x"
    % = modified in '/etc/icinga2/zones.d/satellite-gw/icingasat3.conf', lines 13:3-13:23
  * address6 = ""
  * check_command = "hostalive"
    % = modified in '/etc/icinga2/zones.d/global-templates/templates.conf', lines 21:3-21:29
  * check_interval = 60
    % = modified in '/etc/icinga2/zones.d/global-templates/templates.conf', lines 16:3-16:21
  * check_period = ""
  * check_timeout = null
  * command_endpoint = ""
  * display_name = "icingasat3"
  * enable_active_checks = true
  * enable_event_handler = true
  * enable_flapping = false
  * enable_notifications = true
  * enable_passive_checks = true
  * enable_perfdata = true
  * event_command = ""
  * flapping_threshold = 0
  * flapping_threshold_high = 30
  * flapping_threshold_low = 25
  * groups = [ ]
  * icon_image = ""
  * icon_image_alt = ""
  * max_check_attempts = 5
    % = modified in '/etc/icinga2/zones.d/global-templates/templates.conf', lines 15:3-15:24
  * name = "icingasat3"
  * notes = ""
  * notes_url = ""
  * package = "_etc"
  * retry_interval = 30
    % = modified in '/etc/icinga2/zones.d/global-templates/templates.conf', lines 17:3-17:22
  * source_location
    * first_column = 1
    * first_line = 3
    * last_column = 38
    * last_line = 3
    * path = "/etc/icinga2/zones.d/satellite-gw/icingasat3.conf"
  * templates = [ "icingasat3", "generic-host" ]
    % = modified in '/etc/icinga2/zones.d/satellite-gw/icingasat3.conf', lines 3:1-3:38
    % = modified in '/etc/icinga2/zones.d/global-templates/templates.conf', lines 14:1-14:28
  * type = "Host"
  * vars
     <redacted>
  * volatile = false
  * zone = "satellite-gw"

So, it appears that the objects all look good but I cannot find the host anywhere in icinga web 2:

image

Does anyone know what could cause this strange behaviour?

1 Like

I’ve fixed this. I’m an idiot. I had not configured the (active) master zones.conf with the appropriate config (only the ‘non-active’ one). The host now shows. :smiley:

...
object Endpoint "icingasat3" {
  host = "icingasat3" // Actively connect to this satellite.
}

object Zone "satellite-gw" {
  endpoints = [ "icingasat3" ]
  parent = "master"
}
...
2 Likes