All validation are completed but still in web page shows icinga is currelty not up and running and when I checked the status the icinga2.service it shows, below and try to figure out the issue from all online solutions but no luck, anyone help me:
[2020-09-01 16:47:55 +0530] information/cli: Icinga application loader (version: 2.12.0-1)
[2020-09-01 16:47:55 +0530] information/cli: Loading configuration file(s).
[2020-09-01 16:47:55 +0530] critical/config: Error: Value computed is not used.
Location: in /etc/icinga2/features-enabled/ido-mysql.conf: 1:0-1:1
/etc/icinga2/features-enabled/ido-mysql.conf(1): ii/**
^^
/etc/icinga2/features-enabled/ido-mysql.conf(2): * The IdoMysqlConnection type implements MySQL support
/etc/icinga2/features-enabled/ido-mysql.conf(3): * for DB IDO.
[2020-09-01 16:47:55 +0530] critical/cli: Config validation failed. Re-run with ‘icinga2 daemon -C’ after fixing the config.
I’d assume you added “(” and “)” here to make it better readable and they are not in your conf file, right?
However, “}” is missing at the end. To verify a configuration (which is recommended before trying a reload) use the command icinga2 daemon -C.
You’ve configured icingaweb2 as database for ido which brings me to a guess you’ve mixed up the databases. You need to have two databases at least: One for icinga2 core (which is usually named icinga2) and one for icingaweb2 (which is usually named icingaweb2).
[root@icinga ~]# icinga2 daemon -C
[2020-09-02 11:46:17 +0530] information/cli: Icinga application loader (version: 2.12.0-1)
[2020-09-02 11:46:17 +0530] information/cli: Loading configuration file(s).
[2020-09-02 11:46:17 +0530] critical/config: Error: Value computed is not used.
Location: in /etc/icinga2/features-enabled/ido-mysql.conf: 1:0-1:1
/etc/icinga2/features-enabled/ido-mysql.conf(1): ii/**
^^
/etc/icinga2/features-enabled/ido-mysql.conf(2): * The IdoMysqlConnection type implements MySQL support
/etc/icinga2/features-enabled/ido-mysql.conf(3): * for DB IDO.
[2020-09-02 11:46:17 +0530] critical/cli: Config validation failed. Re-run with ‘icinga2 daemon -C’ after fixing the config.
Hi RSX, I am not expert in Linux as I am a windows person but still wanted to implement this that is the reason I am lacking with the commands and you might be correct that I am mixing it.
I’m sorry, I’m not able to help you since you do not post correctly. The error message clearly shows that you conf files starts with two i and in your (still unformatted) post they are missing.
I know this is an old thread but it still is the first result on some search engines when looking for the error.
In my case i was installing a new icinga2 server and ran into the same error displayed on the web ui.
The solution for me was to check the permissions set in the directory /etc/icinga2/features-available
On my system the icinga2 service is running under the “icinga” user and therefore i had to adjust my permissions accordingly:
Before the adjustment the file “/etc/icinga2/features-available/ido-mysql.conf” was owned by the root user and therefore not readable by the icinga service.