Configuration of module: Director - CURL timeout error

I had a working icinga2 on a Raspberry PI monitoring computers (Ubuntu & RPIs) installed using the sleeplessbeastie tutorial( This is for use on a local network only. I wanted to try Director and installed it from Git using the Director sleeplessbeastie tutorial ( I have no hosts defined, intending to add them using Director. I am using postgres 11. First post so I hope this goes OK. Thanks in advance!

icinga2 version:

icinga@icinga:~ $ sudo icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.2-1)

Copyright (c) 2012-2020 Icinga GmbH (
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:

  Platform: Raspbian GNU/Linux
  Platform version: 10 (buster)
  Kernel: Linux
  Kernel version: 4.19.97-v7+
  Architecture: armv7l

Build information:
  Compiler: GNU 8.3.0
  Build host: runner-LTrJQZ9N-project-297-concurrent-0

Application information:

General paths:
  Config directory: /etc/icinga2
  Data directory: /var/lib/icinga2
  Log directory: /var/log/icinga2
  Cache directory: /var/cache/icinga2
  Spool directory: /var/spool/icinga2
  Run directory: /run/icinga2

Old paths (deprecated):
  Installation root: /usr
  Sysconf directory: /etc
  Run directory (base): /run
  Local state directory: /var

Internal paths:
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /run/icinga2/

Module list:

icinga@icinga:~ $ sudo icingacli module list
director       1.7.2     enabled   Director - Config tool for Icinga 2
incubator      0.5.0     enabled   Incubator provides bleeding-edge libraries
ipl            v0.5.0    enabled   The Icinga PHP library
monitoring     2.6.2     enabled   Icinga monitoring module
reactbundle    0.7.0     enabled   ReactPHP-based 3rd party libraries

The curl command checking API authentication from another post seems to work:

icinga@icinga:~ $ sudo curl -k -s -u root:cde75c8dad235e28 ''
[sudo] password for icinga: 
<html><head><title>Icinga 2</title></head><h1>Hello from Icinga 2 (Version: r2.11.2-1)!</h1><p>You are authenticated as <b>root</b>. Your user has the following permissions:</p> <ul><li>*</li></ul><p>More information about API requests is available in the <a href="" target="_blank">documentation</a>.</p></html>

In my local setup, I don’t know what the FQDN should be. I tried ‘icinga.local’, but got further using simply ‘icinga’.

The listen port seems to be correct:

icinga@icinga:~ $ sudo netstat -tulpen | grep 5665
tcp        0      0  *               LISTEN      109        167111     16121/icinga2

The web error message is:

I was unable to re-establish a connection to the Endpoint "icinga" ( When reconnecting to the configured Endpoint (icinga:5665) I get an error: CURL ERROR: Connection timed out after 3001 milliseconds Please re-check your Icinga 2 endpoint configuration (KickstartHelper.php:375)

Screenshot with error message is on the next post.

Also from the debug log, I get not connecting to Endpoint ‘icinga’ because that’s us. Sounds like an error?

[2020-03-15 20:00:01 +0000] notice/DbConnection: Updating programstatus table.
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: UPDATE icinga_programstatus SET active_host_checks_enabled = E'1',  active_service_checks_enabled = E'1',  daemon_mode = E'1',  endpoint_name = E'icinga',  event_handlers_enabled = E'1',  flap_detection_enabled = E'1',  instance_id = 1,  is_currently_running = E'1',  last_command_check = TO_TIMESTAMP(1584302401) AT TIME ZONE 'UTC',  notifications_enabled = E'1',  passive_host_checks_enabled = E'1',  passive_service_checks_enabled = E'1',  process_id = E'6604',  process_performance_data = E'1',  program_start_time = TO_TIMESTAMP(1584234368) AT TIME ZONE 'UTC',  program_version = E'r2.11.2-1',  status_update_time = TO_TIMESTAMP(1584302401) AT TIME ZONE 'UTC' WHERE instance_id = 1
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: COMMIT
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: BEGIN
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: DELETE FROM icinga_runtimevariables WHERE instance_id = 1
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: INSERT INTO icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1, E'total_services', E'0')
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: INSERT INTO icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1, E'total_scheduled_services', E'0')
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: INSERT INTO icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1, E'total_hosts', E'0')
[2020-03-15 20:00:01 +0000] debug/IdoPgsqlConnection: Query: INSERT INTO icinga_runtimevariables (instance_id, varname, varvalue) VALUES (1, E'total_scheduled_hosts', E'0')
[2020-03-15 20:00:02 +0000] debug/IdoPgsqlConnection: Query: COMMIT
[2020-03-15 20:00:02 +0000] debug/IdoPgsqlConnection: Query: BEGIN
[2020-03-15 20:00:02 +0000] debug/ApiListener: Not connecting to Endpoint 'icinga' because that's us.
[2020-03-15 20:00:02 +0000] notice/ApiListener: Current zone master: icinga
[2020-03-15 20:00:02 +0000] notice/ApiListener: Connected endpoints: 
[2020-03-15 20:00:02 +0000] notice/ApiListener: Updating object authority for objects at endpoint 'icinga'.