Icinga2 not listening on port 5665 on Debian 11 (Bullseye)

Hello,
i’ve noticed that the current version of icinga2 it not correctly working on Debian11 (Bullsyeye). I icinga2 as an agent on a Proxmox VE 7 Server (based on Debian11) and the Icinga-Master was not able to connect to the agent on port 5665. It turned out that icinga was not listened on port 5665 or even another port (i didn’t changed anything in the configs). This was reproducable on another Proxmox VE7 host and even on a fresh installed/updated Debian 11 VM:

root@debian:~# service icinga2 status
● icinga2.service - Icinga host/service/network monitoring system
     Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/icinga2.service.d
             └─limits.conf
     Active: active (running) since Thu 2021-11-04 08:38:47 CET; 8s ago
    Process: 5930 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 (code=exited, status=0/SUCCESS)
   Main PID: 5938 (icinga2)
     Status: "Startup finished."
      Tasks: 21
     Memory: 13.0M
        CPU: 286ms
     CGroup: /system.slice/icinga2.service
             ├─5938 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log
             ├─5970 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log
             └─5979 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log

Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 1 UserGroup.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 1 User.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 3 TimePeriods.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 3 ServiceGroups.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 1 ScheduledDowntime.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ConfigItem: Instantiated 12 Services.
Nov 04 08:38:47 debian icinga2[5970]: [2021-11-04 08:38:47 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
Nov 04 08:38:47 debian icinga2[5938]: [2021-11-04 08:38:47 +0100] information/cli: Closing console log.
Nov 04 08:38:47 debian systemd[1]: Started Icinga host/service/network monitoring system.
root@debian:~# lsof -i -P -n
COMMAND   PID             USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd-t 366 systemd-timesync   16u  IPv4  28922      0t0  UDP *:35655
sshd      501             root    3u  IPv4  14787      0t0  TCP *:22 (LISTEN)
sshd      501             root    4u  IPv6  14789      0t0  TCP *:22 (LISTEN)
sshd      504             root    4u  IPv4  14810      0t0  TCP 192.168.100.33:22->192.168.250.6:61575 (ESTABLISHED)
sshd      504             root    9u  IPv6  20578      0t0  TCP [::1]:6010 (LISTEN)
sshd      504             root   10u  IPv4  20579      0t0  TCP 127.0.0.1:6010 (LISTEN)
sshd      513             root    4u  IPv4  14827      0t0  TCP 192.168.100.33:22->192.168.250.6:61576 (ESTABLISHED)

the logfile does not show any relevant error (icinga.log):

[2021-11-04 08:34:10 +0100] information/FileLogger: 'main-log' started.
[2021-11-04 08:34:10 +0100] information/NotificationComponent: 'notification' started.
[2021-11-04 08:34:10 +0100] information/CheckerComponent: 'checker' started.
[2021-11-04 08:34:10 +0100] information/ConfigItem: Activated all objects.
[2021-11-04 08:35:10 +0100] information/ConfigObjectUtility: Created and activated object 'debian!load!8f8ce674-e0b8-4497-9def-5fd2a5f93cf4' of type 'Downtime'.
[2021-11-04 08:35:10 +0100] information/Downtime: Added downtime 'debian!load!8f8ce674-e0b8-4497-9def-5fd2a5f93cf4' between '2021-11-05 02:00:00' and '2021-11-05 03:00:00', author: 'icingaadmin', fixed
[2021-11-04 08:36:24 +0100] information/Checkable: Checkable 'debian!http' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.
[2021-11-04 08:36:24 +0100] information/Notification: Sending 'Problem' notification 'debian!http!mail-icingaadmin' for user 'icingaadmin'
[2021-11-04 08:36:24 +0100] information/Notification: Completed sending 'Problem' notification 'debian!http!mail-icingaadmin' for checkable 'debian!http' and user 'icingaadmin' using command 'mail-service-notification'.
[2021-11-04 08:36:24 +0100] warning/PluginNotificationTask: Notification command for object 'debian!http' (PID: 3624, arguments: '/etc/icinga2/scripts/mail-service-notification.sh' '-4' '127.0.0.1' '-6' '::1' '-b' '' '-c' '' '-d' '2021-11-04 08:36:24 +0100' '-e' 'http' '-l' 'debian' '-n' 'debian' '-o' 'connect to address 127.0.0.1 and port 80: Verbindungsaufbau abgelehnt
HTTP CRITICAL - Konnte TCP socket nicht öffnen' '-r' 'root@localhost' '-s' 'CRITICAL' '-t' 'PROBLEM' '-u' 'http' '-v' 'false') terminated with exit code 1, output: mail not found in $PATH. Consider installing it.

[2021-11-04 08:38:40 +0100] information/FileLogger: 'main-log' started.
[2021-11-04 08:38:40 +0100] information/FileLogger: 'debug-file' started.
[2021-11-04 08:38:40 +0100] information/NotificationComponent: 'notification' started.
[2021-11-04 08:38:40 +0100] information/CheckerComponent: 'checker' started.
[2021-11-04 08:38:40 +0100] information/ConfigItem: Activated all objects.
[2021-11-04 08:38:47 +0100] information/Application: Received request to shut down.
[2021-11-04 08:38:47 +0100] information/Application: Shutting down...
[2021-11-04 08:38:47 +0100] information/CheckerComponent: 'checker' stopped.
[2021-11-04 08:38:47 +0100] information/NotificationComponent: 'notification' stopped.
[2021-11-04 08:38:47 +0100] information/FileLogger: 'main-log' started.
[2021-11-04 08:38:47 +0100] information/FileLogger: 'debug-file' started.
[2021-11-04 08:38:47 +0100] information/NotificationComponent: 'notification' started.
[2021-11-04 08:38:47 +0100] information/CheckerComponent: 'checker' started.
[2021-11-04 08:38:47 +0100] information/ConfigItem: Activated all objects.
[2021-11-04 08:41:00 +0100] information/Checkable: Checkable 'debian!http' has 1 notification(s). Checking filters for type 'Problem', sends will be logged.
[2021-11-04 08:41:00 +0100] information/Notification: Sending 'Problem' notification 'debian!http!mail-icingaadmin' for user 'icingaadmin'
[2021-11-04 08:41:00 +0100] information/Notification: Completed sending 'Problem' notification 'debian!http!mail-icingaadmin' for checkable 'debian!http' and user 'icingaadmin' using command 'mail-service-notification'.
[2021-11-04 08:41:00 +0100] warning/PluginNotificationTask: Notification command for object 'debian!http' (PID: 6882, arguments: '/etc/icinga2/scripts/mail-service-notification.sh' '-4' '127.0.0.1' '-6' '::1' '-b' '' '-c' '' '-d' '2021-11-04 08:41:00 +0100' '-e' 'http' '-l' 'debian' '-n' 'debian' '-o' 'connect to address 127.0.0.1 and port 80: Verbindungsaufbau abgelehnt
HTTP CRITICAL - Konnte TCP socket nicht öffnen' '-r' 'root@localhost' '-s' 'CRITICAL' '-t' 'PROBLEM' '-u' 'http' '-v' 'false') terminated with exit code 1, output: mail not found in $PATH. Consider installing it.
[2021-11-04 08:43:47 +0100] information/ConfigObject: Dumping program state to file '/var/lib/icinga2/icinga2.state'
[2021-11-04 08:48:47 +0100] information/ConfigObject: Dumping program state to file '/var/lib/icinga2/icinga2.state'

and even with debug log i cant see errors:

[2021-11-04 08:38:40 +0100] information/FileLogger: 'debug-file' started.
[2021-11-04 08:38:40 +0100] notice/Downtime: Checkable 'debian!load' already in a NOT-OK state. Triggering downtime now.
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 0 segments.
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:40 2021' <-> 'Fri Nov  5 08:38:40 2021' from TimePeriod 'never'
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'saturday' => 1636153200 -> 1636239600, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'sunday' => 1636239600 -> 1636326000, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1635980400 -> 1636066800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'saturday' => 1636153200 -> 1636239600, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'sunday' => 1636239600 -> 1636326000, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1636585200 -> 1636671600, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 2 segments.
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:40 2021' <-> 'Fri Nov  5 08:38:40 2021' from TimePeriod '24x7'
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Adding segment 'Thu Nov  4 00:00:00 2021' <-> 'Fri Nov  5 00:00:00 2021' to TimePeriod '24x7'
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Adding segment 'Fri Nov  5 00:00:00 2021' <-> 'Sat Nov  6 00:00:00 2021' to TimePeriod '24x7'
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1635980400 -> 1636066800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1636585200 -> 1636671600, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:40 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 2 segments.
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:40 2021' <-> 'Fri Nov  5 08:38:40 2021' from TimePeriod '9to5'
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Adding segment 'Thu Nov  4 09:00:00 2021' <-> 'Thu Nov  4 17:00:00 2021' to TimePeriod '9to5'
[2021-11-04 08:38:40 +0100] debug/TimePeriod: Adding segment 'Fri Nov  5 09:00:00 2021' <-> 'Fri Nov  5 17:00:00 2021' to TimePeriod '9to5'
[2021-11-04 08:38:40 +0100] information/NotificationComponent: 'notification' started.
[2021-11-04 08:38:40 +0100] information/CheckerComponent: 'checker' started.
[2021-11-04 08:38:40 +0100] information/ConfigItem: Activated all objects.
[2021-11-04 08:38:40 +0100] notice/ApiListener: Updating object authority for local objects.
[2021-11-04 08:38:40 +0100] debug/IcingaApplication: In IcingaApplication::Main()
[2021-11-04 08:38:45 +0100] notice/CheckerComponent: Pending checkables: 0; Idle checkables: 13; Checks/s: 0
[2021-11-04 08:38:47 +0100] information/Application: Received request to shut down.
[2021-11-04 08:38:47 +0100] information/Application: Shutting down...
[2021-11-04 08:38:47 +0100] information/CheckerComponent: 'checker' stopped.
[2021-11-04 08:38:47 +0100] information/NotificationComponent: 'notification' stopped.
[2021-11-04 08:38:47 +0100] information/FileLogger: 'debug-file' started.
[2021-11-04 08:38:47 +0100] notice/Downtime: Checkable 'debian!load' already in a NOT-OK state. Triggering downtime now.
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 0 segments.
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:47 2021' <-> 'Fri Nov  5 08:38:47 2021' from TimePeriod 'never'
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'saturday' => 1636153200 -> 1636239600, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'sunday' => 1636239600 -> 1636326000, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1635980400 -> 1636066800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'saturday' => 1636153200 -> 1636239600, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'sunday' => 1636239600 -> 1636326000, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1636585200 -> 1636671600, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 2 segments.
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:47 2021' <-> 'Fri Nov  5 08:38:47 2021' from TimePeriod '24x7'
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Adding segment 'Thu Nov  4 00:00:00 2021' <-> 'Fri Nov  5 00:00:00 2021' to TimePeriod '24x7'
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Adding segment 'Fri Nov  5 00:00:00 2021' <-> 'Sat Nov  6 00:00:00 2021' to TimePeriod '24x7'
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1635980400 -> 1636066800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'friday' => 1636066800 -> 1636153200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'monday' => 1636326000 -> 1636412400, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'thursday' => 1636585200 -> 1636671600, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'tuesday' => 1636412400 -> 1636498800, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: ParseTimeRange: 'wednesday' => 1636498800 -> 1636585200, stride: 1
[2021-11-04 08:38:47 +0100] debug/LegacyTimePeriod: Legacy timeperiod update returned 2 segments.
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Removing segment 'Thu Nov  4 08:38:47 2021' <-> 'Fri Nov  5 08:38:47 2021' from TimePeriod '9to5'
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Adding segment 'Thu Nov  4 09:00:00 2021' <-> 'Thu Nov  4 17:00:00 2021' to TimePeriod '9to5'
[2021-11-04 08:38:47 +0100] debug/TimePeriod: Adding segment 'Fri Nov  5 09:00:00 2021' <-> 'Fri Nov  5 17:00:00 2021' to TimePeriod '9to5'
[2021-11-04 08:38:47 +0100] information/NotificationComponent: 'notification' started.
[2021-11-04 08:38:47 +0100] information/CheckerComponent: 'checker' started.
[2021-11-04 08:38:47 +0100] information/ConfigItem: Activated all objects.
[2021-11-04 08:38:47 +0100] notice/ApiListener: Updating object authority for local objects.
[2021-11-04 08:38:47 +0100] debug/IcingaApplication: In IcingaApplication::Main()
[2021-11-04 08:38:52 +0100] notice/CheckerComponent: Pending checkables: 0; Idle checkables: 13; Checks/s: 0
[2021-11-04 08:38:57 +0100] notice/CheckerComponent: Pending checkables: 0; Idle checkables: 13; Checks/s: 0
[2021-11-04 08:38:59 +0100] debug/CheckerComponent: Scheduling info for checkable 'debian!users' (2021-11-04 08:38:59 +0100): Object 'debian!users', Next Check: 2021-11-04 08:38:59 +0100(1.63601e+09).
[2021-11-04 08:38:59 +0100] debug/CheckerComponent: Executing check for 'debian!users'
[2021-11-04 08:38:59 +0100] debug/Checkable: Update checkable 'debian!users' with check interval '60' from last check time at 1970-01-01 01:00:00 +0100 (-1) to next check time at 2021-11-04 08:39:57 +0100 (1.63601e+09).

When you restart the icinga2 service it also hangs/freezes a few seconds or even minutes until it starts again.

  • Version used (icinga2 --version)
root@debian:~# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.1-1)

Copyright (c) 2012-2021 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl2.html>
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: Debian GNU/Linux
  Platform version: 11 (bullseye)
  Kernel: Linux
  Kernel version: 5.10.0-9-amd64
  Architecture: x86_64

Build information:
  Compiler: GNU 10.2.1
  Build host: runner-hh8q3bz2-project-508-concurrent-0
  OpenSSL version: OpenSSL 1.1.1k  25 Mar 2021

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/icinga2.pid

Hi & welcome to the icinga community,

According to your logs API is no enabled. You can check this with

icinga2 feature list

to enable it use

icinga2 feature enable api

This will only work when your certificates are fine.

1 Like

Hello and thanks alot!
i thought icinga is always listening on this port, after i run the kickstart script (director) it enabled the api feature and now its listening on 5665 :slight_smile: