IcingaDB not running

Hi Community,

does someone have some advice for me?
Still getting the following message after walking through the install docs according to IcingaDB an IcingaDB-Web

#  /usr/sbin/icingadb --config /etc/icingadb/config.yml
2022-12-08T16:56:58.284+0100    INFO    icingadb        Starting Icinga DB
2022-12-08T16:56:58.284+0100    INFO    icingadb        Connecting to database at 'localhost:0'
2022-12-08T16:56:58.285+0100    INFO    icingadb        Connecting to Redis at 'localhost:6380'
2022-12-08T16:57:01.286+0100    INFO    icingadb        Waiting for Icinga 2 to write into Redis, please make sure you have started Icinga 2 and the Icinga DB feature is enabled

DB Connect seems to work the correct way, DB password length is 11 only alphanumeric in it
image

Redis setting in icingadb module gives me this message
image

Feature is enabled and set the DB pass in /etc/icingadb/config.yml

# icingacli module list | grep icingadb
icingadb       1.0.2     enabled   Icinga DB Web

Service icinga2, icingadb, icingadb-redis state running

  • Icinga DB Web version (System - About): 1.0.2
  • Icinga Web 2 version (System - About): 2.11.2
  • Web browser: Chrome latest
  • Icinga 2 version (icinga2 --version): version: r2.13.6-1
  • Icinga DB version (icingadb --version): Icinga DB version: v1.1.0
  • PHP version used (php --version): PHP 8.1.13
  • Server operating system and version: Debian GNU/Linux 11 (bullseye)

Hello @B3RN0UT!

This message…

… means not the Icinga Web module…

… but Icinga 2, see icinga2 feature list.

Best,
A/K

1 Like

Make sure that u entered here the correct details for your database-connection:

/etc/icingadb/config.yml

After that I prefer to do a restart of your icinga-system. :slight_smile:

3 Likes

Thanks a lot that was my main mistake (as for everyone I guess :slight_smile: )
Bit confusing at this point that the module name and the feature name is similiar.

So

icinga2 feature enable icingadb

and

 systemctl restart icinga2

did the trick.

Thanks again

1 Like

Hello community. I have the same problem. My Icingadb is apparently not running.
I have a fresh installed Debian with blank installed Icinga.

Here is a list of the Icinga2 activated features.

Disabled features: command compatlog debuglog elasticsearch gelf graphite influxdb influxdb2 journald livestatus opentsdb statusdata syslog
Enabled features: api checker icingadb ido-mysql mainlog notification perfdata

Icinga2, icingaweb2, director, icingadb and mariadb server are all installed on the same machine.

root@icinganode01:~# systemctl status icingadb-redis-server.service 
â—Ź icingadb-redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/icingadb-redis-server.service; enabled; preset: enabled)
     Active: active (running) since Mon 2024-04-01 01:04:10 CEST; 1 week 1 day ago
       Docs: http://redis.io/documentation,
             man:icingadb-redis-server(1)
   Main PID: 472 (icingadb-redis-)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 4644)
     Memory: 49.9M
        CPU: 22min 44.943s
     CGroup: /system.slice/icingadb-redis-server.service
             └─472 "/usr/bin/icingadb-redis-server 127.0.0.1:6380"

Apr 01 01:04:09 icinganode01 systemd[1]: Starting icingadb-redis-server.service - Advanced key-value store...
Apr 01 01:04:10 icinganode01 systemd[1]: Started icingadb-redis-server.service - Advanced key-value store.

If I connect to the database via an SSH tunnel, this also works. The login details for the cinga2_db are correct.
I stored this in the file /etc/icingadb/config.yml.

I’ve been searching Google for two weeks now and have found some posts here in the forum. I can’t find the error and need help.

Hello community. I have the same problem. My Icingadb is apparently not running.
I have a fresh installed Debian with blank installed Icinga.

This is just a shot in the dark, but your systemctl output only shows
the icingadb-redis-server.service. Is the icingadb.service also running?

To have a working Icinga DB, you need an Icinga 2 with the icingadb
feature enabled (which seems to be the case based on your output), a
running Redis or Redis-like instance (icingadb-redis-server seems to be
there), a compatible SQL database (you wrote about MariaDB), Icinga DB
itself, and the icingadb-web module if using Icinga Web 2.