I have set up icinga and icingaweb2 successfully without any issues. However, after launcing icingaweb UI, I could see the process information as “icinga is currently not up and running”. It is not showing any hosts
I could see above message under system->monitoring health->process information.
Tried to attached screenshot, it seems there is an issued in uploading atachments
You just need to reload icinga2. If the table is still empty, then your IDO is not working properly or IDO is not enabled. The latter you can check with:
(IdoPgsqlConnection, ido-pgsql) items: 1, rate: 2/s (120/min 638/5min 1304/15min);
[2020-01-13 11:58:03 +0100] critical/IdoPgsqlConnection: Connection to database ‘icinga’ with user ‘icinga’ on ‘localhost:5432’ failed: "could not connect to server: Connection refused
Is the server running on host “localhost” (127.0.0.1) and accepting
TCP/IP connections on port 5432?
But in resources.ini file, I have changed the port 5432 to different port
I could login to database. Below is the sample query i tried connecting to pgsql
icinga=> select status_update_time from icinga_programstatus;
status_update_time
I updated ido_pgsql.conf file adding port and restarted icinga and apache services. Still, no hosts is dispalyed in web console. same message “icinga is currently not up and running”
The IdoPgsqlConnection type implements PostgreSQL support
for DB IDO.
*/
object IdoPgsqlConnection “ido-pgsql” {
user = “icinga”
password = “xxxxxx”
host = “localhost”
port = “xxxxx”
database = “icinga”
[2020-01-13 14:18:25 +0100] critical/IdoPgsqlConnection: Connection to database ‘icinga’ with user ‘icinga’ on ‘localhost:5432’ failed: "could not connect to server: Connection refused
Is the server running on host “localhost” (127.0.0.1) and accepting
TCP/IP connections on port 5432?
"
Context:
(0) Reconnecting to PostgreSQL IDO database ‘ido-pgsql’
[2020-01-13 14:18:25 +0100] warning/IdoPgsqlConnection: Exception during database operation: Verify that your database is operational!
[2020-01-13 14:18:27 +0100] warning/PluginCheckTask: Check command for object ‘localhost!ping4’ (PID: 72983, arguments: ‘/icinga2/icinga/usr/lib/nagios/plugins/check_ping’ ‘-4’ ‘-H’ ‘127.0.0.1’ ‘-c’ ‘200,15%’ ‘-w’ ‘100,5%’) terminated with exit code 128, output: execvpe(/icinga2/icinga/usr/lib/nagios/plugins/check_ping) failed: No such file or directory
I just replaced hostname by “localhost” in the above content otherwise everything is as it is.
/**
* This file defines global constants which can be used in
* the other configuration files.
*/
/* The directory which contains the plugins from the Monitoring Plugins project. */
const PluginDir = "/usr/lib/nagios/plugins"
/* The directory which contains the Manubulon plugins.
* Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
*/
const ManubulonPluginDir = "/usr/lib/nagios/plugins"
/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
* Check the documentation, chapter "Plugins Contribution", for details.
*/
const PluginContribDir = "/usr/lib/nagios/plugins"
...
You need to make sure that the path to the plugins correspond to the constants. If there are some plugins missing in that directory, you need to copy/install them.
Hi @srinivas
two small requests for future topics/posts:
In future please use the markdown options to format your posts, especially if they contain code/config/log snippets. This way you make it easier for people trying the help reading your posts
Here you can find a HowTo for this: