Process information: icinga is currently not rup and running

hi all.

Resources icinga_ido name databese must be “icinga”
In old documentation is recomended name icinga2.

Jozef

Hi Jozef,

The backend database can be named whatever you want. You can point icingaweb to the correct database name from Configuration > Application > Resources in icingaweb2

Hi Blake,

sorry but this not true for my experience.
I tryed new install latest version icinga2 on the Centos8

Issue:
Icinga Web / System / Monitoring Heath / Process information show error
" icinga is currently not up and running"

my notes:
MariaDB [(none)]> CREATE DATABASE icinga2;
mysql -u root -p

Query OK, 1 row affected (0.001 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON icinga2.* to icinga2@localhost
IDENTIFIED BY ‘icinga123’;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> quit

mysql -u root -p icinga2 < /usr/share/icinga2-ido-mysql/schema/mysql.sql

icinga2 feature enable ido-mysql
icinga2 feature enable command
icinga2 feature list
systemctl restart icinga2

[root@srvic0 ~]# icingacli module list
MODULE VERSION STATE DESCRIPTION
director 1.7.1 enabled Director - Config tool for Icinga 2
incubator 0.5.0 enabled Incubator provides bleeding-edge
libraries
ipl v0.5.0 enabled The Icinga PHP library
monitoring 2.7.3 enabled Icinga monitoring module
reactbundle 0.7.0 enabled ReactPHP-based 3rd party libraries

[root@srvic0 ~]# systemctl status icinga2
● icinga2.service - Icinga host/service/network monitoring system
Loaded: loaded (/usr/lib/systemd/system/icinga2.service; enabled;
vendor preset: disabled)
Active: active (running) since Thu 2020-04-23 12:28:28 CEST; 9min ago
Process: 25017 ExecStartPre=/usr/lib/icinga2/prepare-dirs
/etc/sysconfig/icinga2 (code=exited, status=0/SUCCESS)
Main PID: 25026 (icinga2)
Tasks: 36 (limit: 26213)
Memory: 17.2M
CGroup: /system.slice/icinga2.service
├─25026 /usr/lib64/icinga2/sbin/icinga2 --no-stack-rlimit
daemon --close-stdio -e /var/log/icinga2/error.log
├─25058 /usr/lib64/icinga2/sbin/icinga2 --no-stack-rlimit
daemon --close-stdio -e /var/log/icinga2/error.log
└─25059 /usr/lib64/icinga2/sbin/icinga2 --no-stack-rlimit
daemon --close-stdio -e /var/log/icinga2/error.log

Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 1 CheckerComponent.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 3 Zones.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 1 ExternalCommandListener.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 1 Endpoint.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 2 ApiUsers.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 1 IdoMysqlConnection.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ConfigItem: Instantiated 235 CheckCommands.
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/ScriptGlobal: Dumping variables to file '/var/cache>
Apr 23 12:28:28 srvic0 icinga2[25026]: [2020-04-23 12:28:28 +0200]
information/cli: Closing console log.
Apr 23 12:28:28 srvic0 systemd[1]: Started Icinga host/service/network
monitoring system.

FIX:

  • After I am create new DB with name “icinga” and modifyed properties
    resource icinga_ido name database to “icinga” imediatly Process
    information is correct.

Jozef

Dne 23.04.2020 v 18:13 Blake Hartshorn via Icinga Community napsal(a):

What are the contents of /etc/icinga2/features-available/ido-mysql.conf? If Icinga isn’t writing to the database icingaweb2 is referencing, it’ll appear offline.

[root@htdic0 ~]# cat /etc/icinga2/features-enabled/ido-mysql.conf
/**

  • The IdoMysqlConnection type implements MySQL support
  • for DB IDO.
    */

object IdoMysqlConnection “ido-mysql” {
//user = “icinga2”
//password = “icinga123”
//host = “localhost”
//database = “icinga2”
}

Thank you your answer. I think that case is posible to closed.

Regards
Jozef

Dne 23.04.2020 v 20:18 Blake Hartshorn via Icinga Community napsal(a):