Icinga2 check pending

Hello,

I am trying to setup Icinga2 + Director as a school project and I came across some problems while trying to do a test host check for google. So the problem is most likely because I didn’t configure something right .

I tried the command icinga2 feature enable command to quick fix my problem but now the error doesn’t pop up and it is still pending.



zones.conf:

object Endpoint “monitoring-master” {
host = “127.0.0.1”
port = 5665
}

object Zone “master” {
endpoints = [ “monitoring-master” ]
}
object Endpoint NodeName {
host = NodeName
}

object Zone ZoneName {
endpoints = [ NodeName ]
}

object Zone “global-templates” {
global = true
}

object Zone “director-global” {
global = true
}

I am using the newest versions 22.04.3 on ubuntu

root@icinga:~# sudo icinga2 object list --type Endpoint
Object ‘icinga’ of type ‘Endpoint’:
% declared in ‘/etc/icinga2/zones.conf’, lines 7:1-7:24

  • __name = “icinga”
  • host = “icinga”
    % = modified in ‘/etc/icinga2/zones.conf’, lines 8:3-8:17
  • log_duration = 86400
  • name = “icinga”
  • package = “_etc”
  • port = “5665”
  • source_location
    • first_column = 1
    • first_line = 7
    • last_column = 24
    • last_line = 7
    • path = “/etc/icinga2/zones.conf”
  • templates = [ “icinga” ]
    % = modified in ‘/etc/icinga2/zones.conf’, lines 7:1-7:24
  • type = “Endpoint”
  • zone = “”