AlexS
(Aleksander)
July 21, 2020, 1:16pm
1
Hello
I freshly installed Icinga2 and have a problem: System > Monitoring Heath > Process Information:
“icinga is currently not up and running”.
OS: Red Hat 7
Used guide : https://www.vultr.com/docs/how-to-install-icinga-2-and-icinga-web-2-on-centos-7
select status_update_time from icinga_programstatus; > returns 0 rows
icingacli module list > returns only ‘Monitoring’
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
rsx
(Roland Sommer)
July 21, 2020, 2:11pm
3
Sounds like ido is not enabled. Please check with icinga2 feature list
.
AlexS
(Aleksander)
July 22, 2020, 6:43am
4
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.
rsx
(Roland Sommer)
July 22, 2020, 8:57am
5
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.
rsx
(Roland Sommer)
July 22, 2020, 9:56am
7
What does icinga2 object list -t IdoMysqlConnection
return?
AlexS
(Aleksander)
July 22, 2020, 10:31am
8
This command returns nothing
rsx
(Roland Sommer)
July 22, 2020, 10:39am
9
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?
log1c
July 22, 2020, 11:35am
10
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
rsx
(Roland Sommer)
July 22, 2020, 11:57am
11
I’m not familiar with CentOS as well. Sorry.
AlexS
(Aleksander)
July 22, 2020, 11:59am
12
Many thanks Roland,
icinga has been up and running with PID 105302 for 1m 00s
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.