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.