"icinga is currently not up and running"

Hello

I freshly installed Icinga2 and have a problem: System > Monitoring Heath > Process Information:
“icinga is currently not up and running”.

  1. OS: Red Hat 7
  2. Used guide : https://www.vultr.com/docs/how-to-install-icinga-2-and-icinga-web-2-on-centos-7
  3. select status_update_time from icinga_programstatus; > returns 0 rows
  4. icingacli module list > returns only ‘Monitoring’
  5. grep -i -r ‘fail|error|refuse’ /var/log/icinga2/ > returns 0 rows

Could someone suggest direction in which to search please? Sounds like DB?

Regards, Aleksander

Hi @AlexS

Have u configured in ido-mysql/ido-pgsql correctly ?

Are there any db related log messages near the end of icinga2’s logfile? (/var/log/icinga2/icinga2.log)

check /etc/icinga2/features-enabled/ido-mysql.conf is correct or not

Regards

Sounds like ido is not enabled. Please check with icinga2 feature list.

Hello Gentlemen, thanks for your interest

Enabled features: checker command ido-mysql mainlog notification

Browsing through the icinga2.log reveals only component start/stop messages - but nothing reg IDO module

[2020-07-21 13:09:36 +0000] information/FileLogger: 'main-log' started.
[2020-07-21 13:09:36 +0000] information/ExternalCommandListener: 'command' started.
[2020-07-21 13:09:36 +0000] warning/ExternalCommandListener: This feature is DEPRECATED and will be removed in future releases. Check the roadmap at https://
github.com/Icinga/icinga2/milestones
Context:
        (0) Activating object 'command' of type 'ExternalCommandListener'

[2020-07-21 13:09:36 +0000] information/NotificationComponent: 'notification' started.
[2020-07-21 13:09:36 +0000] information/CheckerComponent: 'checker' started.
[2020-07-21 13:09:36 +0000] information/ConfigItem: Activated all objects.

Which version of icinga2 are you using?

In the log should be a line like:

[2020-07-22 10:53:42 +0200] information/DbConnection: ‘ido-mysql’ started.

Could you share your /etc/icinga2/features-available/ido-mysql.conf? without password of course.

Hi Roland

  1. Versions:
    icinga2: 2.11.4-1.el7
    icinga2web: 2.8.1-1.el7

  2. grep -i -r ‘mysql|ido|db|database’ /var/log/icinga2/*
    returns 0 results

  3. cat /etc/icinga2/features-available/ido-mysql.conf

    object IdoMysqlConnection "ido-mysql" {
      user = "icinga"
      password = "xxx"
      host = "localhost"
      database = "icinga"
    }

What does icinga2 object list -t IdoMysqlConnection return?

This command returns nothing

Ok, we’ve found your issue. The question is how to solve it (as I’m not familiar with RHEL). Maybe the permission of ido-mysql.conf is wrong. It should be 600, owner icinga and group icinga. Or is has to do with AppArmor or SELinux or a missing rpm packet?

Which icinga packages do you have installed?
rpm -aq | grep icinga

Maybe we can spot a missing package.
Here is what my CentOS 7 test system has installed.

# rpm -aq | grep icinga|sort -d
icinga2-2.11.4-1.el7.icinga.x86_64
icinga2-bin-2.11.4-1.el7.icinga.x86_64
icinga2-common-2.11.4-1.el7.icinga.x86_64
icinga2-ido-mysql-2.11.4-1.el7.icinga.x86_64
icinga2-selinux-2.11.4-1.el7.icinga.x86_64
icingacli-2.8.1-1.el7.icinga.noarch
icinga-l10n-1.0.0-1.el7.icinga.noarch
icinga-rpm-release-7-4.el7.icinga.noarch
icingaweb2-2.8.1-1.el7.icinga.noarch
icingaweb2-common-2.8.1-1.el7.icinga.noarch
icingaweb2-selinux-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-dompdf-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-HTMLPurifier-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-JShrink-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-lessphp-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-Parsedown-2.8.1-1.el7.icinga.noarch
icingaweb2-vendor-zf1-2.8.1-1.el7.icinga.noarch
php-Icinga-2.8.1-1.el7.icinga.noarch
vim-icinga2-2.11.4-1.el7.icinga.x86_64

I’m not familiar with CentOS as well. Sorry.

Many thanks Roland,

icinga has been up and running with PID 105302 for 1m 00s :slight_smile:

Below was the problem reason:

ls -l /etc/icinga2/features-available/ido-mysql.conf
-rw-r-----. 1 root root 205 Jul 20 09:58 /etc/icinga2/features-available/ido-mysql.conf

Not sure if the guide was missing this step or i did something wrong.

However, regarding Log1c package list compared to mine i am missing icinga2-selinux (while icingaweb2-selinux is present).
I will install it, also it rings a bell for accesses.