Hi there,
I have set up a distributed setup with 2 masters. The icinga2 setup is working fine.
On each master, there is a redis server and icingadb running.
Then I have a 3rd server that hosts mariadb (mysql), icingadb, icingadb-web and icingaweb2. In the web interface, I could enter the redis information of the 2 masters, but it also demands for a localhost address, Do I have to configure the 2 redis instances also as hosts in /etc/icingadb/config.yaml? In which format?
Yeah, icingadb is running on the masters. My assumption was that I need only icingadb-web and icingaweb on the DB/Webserver and that redis is only needed on the masters. Although I entered a command transports api connection to both masters in icingaweb, the redis connection is not established. I get the message, that the redis connection itself is established, but icinga2 is not running, although it is running succesfully on both masters.
If each master node is equipped with Icinga 2, Icinga DB and Redis, the default configuration should already work after icinga2 feature enable icingadb.
The Icinga 2 should log errors if it has issues connecting to its configured Icinga DB. You might wanna consult the logs.
(Edited as the mail transport lost half of my message )
I consulted the logs and the feature was enabled. The problem is the redis authentication. With protected modeenabled and password for the default user set, I get a NOAUTH message, but it works with protected mode off and without authentication. So apparently I have to look how to get the redis authentication right when using a password.