After Icinga2 Update no connection to windows Icinga Agent

Hello, I just updated my ubuntu 22.04 LTS to 24.04 LTS.

I updated the repositories for icinga and got it to work again.
But only ping monitoring works rn.
Windows Icinga Agents cant connect to icinga.

On Windows, I get the following message:

warning/ApiListener: Removing API client for endpoint 'SERVERNAME'. 0 API clients left.
warning/JsonRpcConnection: API client disconnected for identity 'SERVERNAME'

A look into icinga2.log gives me the following error:

[2024-10-23 14:39:04 +0000] information/IcingaDB: Trying to connect to Redis server (async) on host '127.0.0.1:6380'

[2024-10-23 14:39:04 +0000] critical/IcingaDB: Cannot connect to 127.0.0.1:6380: Connection refused [system:111 at /usr/include/boost/asio/detail/reactive_socket_connect_op.hpp:98 in function 'do_complete']

Any hints please?

  • Platform version: 24.04.1 LTS (Noble Numbat)
  • Icinga r2.14.2-1
  • Enabled features api checker command icingadb ido-mysql mainlog notificatio
  • Icinga Web 2 Version 2.12.1 & PHP 8.3.6

Sounds like this issue.

1 Like

Looks like your IcingaDB redis service is not running.

As you have both the icingadb feature and the ido-mysql feature enable, which of both are you using?
Is your setup using the old ido-style mysql database or the new icingadb-style db + redis?

In case you do not use icingadb, disable the feature (might be enabled by default nowadays, as ido is deprecated).

Then check again if your icinga2 service is up and running and if you can connect from your agent to the parent. Connection director Agent → Parent is recommended to limit log messages and a bit of load on the parent (see: Distributed Monitoring - Icinga 2)

2 Likes

Well - I don’t know what to say.
I had a good night sleep and this morning icinga2 is running normal again.