IcingaDB - Not connected to Redis

Hello Stars,

I managed to install icinga2, icingaweb2 & Redis on master1 & master2 . I have a kept a seperate server for the icingadb.
I have established connections between them by following IcingaDB HA setup in both master1 & master2. In this file - etc/icingadb/config.yml which is in the DB server. I had to enter ip address of the both masters as I have installed redis in both servers. In the web when I enter Redis IP & validate, it’s a success under the icingadb module. I tried to put the monitoring of icingadb but it says – critical – not connected to Redis. Any suggestions would be helpful.

etc/icingadb/config.yml , in the db server
database:

Database type. Either ‘mysql’ for MySQL or ‘pgsql’ for PostgreSQL.

Defaults to ‘mysql’.

type: mysql

Database host or absolute Unix socket path.

host: localhost

Database port. By default, the MySQL or PostgreSQL port, depending on the database type.

port: 3306

Database name.

database: icingadb

Database user.

user: icingadb

Database password.

password: CHANGEME

Connection configuration for the Redis server where Icinga 2 writes its configuration, state and history items.

This is the same connection as configured in the ‘icingadb’ feature of the corresponding Icinga 2 node.

High availability setups require a dedicated Redis server per Icinga 2 node and

therefore a dedicated Icinga DB instance that connects to it.

redis:
host: 10.49.211.90
port: 6380

host: 10.49.211.91
port: 6380

Hello Vaibhav!

What does your Icinga DB daemon log say about Redis connectivity?

Best,
A/K

icinga2 daemon -C
[2023-12-12 06:45:12 +0000] information/cli: Icinga application loader (version: r2.14.0-1)
[2023-12-12 06:45:12 +0000] information/cli: Loading configuration file(s).
[2023-12-12 06:45:12 +0000] information/ConfigItem: Committing config item(s).
[2023-12-12 06:45:12 +0000] information/ApiListener: My API identity: delei3990
[2023-12-12 06:45:12 +0000] warning/ApplyRule: Apply rule ‘Icinga2 - Connectivity’ (in /var/lib/icinga2/api/packages/director/2768129d-916b-4780-aa2c-ac42944f0bdb/zones.d/director-global/servicesets.conf: 26:1-26:38) for type ‘Service’ does not match anywhere!
[2023-12-12 06:45:12 +0000] warning/ApplyRule: Apply rule ‘Icinga2 - State’ (in /var/lib/icinga2/api/packages/director/2768129d-916b-4780-aa2c-ac42944f0bdb/zones.d/director-global/servicesets.conf: 34:1-34:31) for type ‘Service’ does not match anywhere!
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 IcingaApplication.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 2 Hosts.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 HostGroup.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 IcingaDB.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 FileLogger.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 4 Zones.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 CheckerComponent.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 3 Endpoints.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 4 ApiUsers.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 NotificationComponent.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 1 ApiListener.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 246 CheckCommands.
[2023-12-12 06:45:12 +0000] information/ConfigItem: Instantiated 6 Services.
[2023-12-12 06:45:12 +0000] information/ScriptGlobal: Dumping variables to file ‘/var/cache/icinga2/icinga2.vars’
[2023-12-12 06:45:12 +0000] information/cli: Finished validating the configuration file(s).

The Icinga DB daemon. Not the Icinga 2 one.