Getting error "Icinga DB by icingadb is UNKNOWN Icinga DB is not running or not writing into the database"

Installed icingaweb2 and configured as per the doc but getting error in dashboard

It seems that Icinga DB is not running. Make sure Icinga DB is running and writing into the database

# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.12.3-1)

Copyright (c) 2012-2024 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
  Platform: Debian GNU/Linux
  Platform version: 11 (bullseye)
  Kernel: Linux
  Kernel version: 5.10.0-28-cloud-amd64
  Architecture: x86_64

Build information:
  Compiler: GNU 10.2.1
  Build host: x86-ubc-01
  OpenSSL version: OpenSSL 1.1.1w  11 Sep 2023

I have attached the details, please let me know how to proceed

why do you use a 3.5 year old icinga2 release?
https://icinga.com/docs/icinga-2/latest/CHANGELOG/#2123-2020-12-15

https://icinga.com/docs/icinga-2/latest/CHANGELOG/#2142-2024-01-18

1 Like

Hi,
The package was already installed and tried upgrading but getting dependency errors, so stayed with this version.

# apt list icinga2
Listing... Done
icinga2/icinga-focal 2.14.2-1+ubuntu20.04 amd64 [upgradable from: 2.12.3-1]
N: There are 52 additional versions. Please use the '-a' switch to see them.
~# apt upgrade icinga2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 icinga2-bin : Depends: libboost-coroutine1.71.0 but it is not installable
               Depends: libboost-filesystem1.71.0 but it is not installable
               Depends: libboost-iostreams1.71.0 but it is not installable
               Depends: libboost-program-options1.71.0 but it is not installable
               Depends: libboost-regex1.71.0-icu66 but it is not installable
               Depends: libboost-thread1.71.0 but it is not installable
 icinga2-ido-mysql : Depends: icinga2-bin (= 2.12.3-1) but 2.14.2-1+ubuntu20.04 is to be installed
                     Depends: icinga2-common (= 2.12.3-1) but 2.14.2-1+ubuntu20.04 is to be installed
E: Broken packages
~#

Is it because of the older version of the icinga2 release?

most likely:
https://icinga.com/docs/icinga-db/latest/doc/04-Upgrading/

You need at least Icinga 2 version 2.13.4 to run Icinga DB v1.0.0.

2 Likes