I had a working icinga2 on a Raspberry PI monitoring computers (Ubuntu & RPIs) installed using the sleeplessbeastie tutorial(https://blog.sleeplessbeastie.eu/2018/01/22/how-to-install-director-module-for-icingaweb2/). This is for use on a local network only. I wanted to try Director and installed it from Git using the Director sleeplessbeastie tutorial (https://blog.sleeplessbeastie.eu/2018/01/22/how-to-install-director-module-for-icingaweb2/). I have no hosts defined, intending to add them using Director. I am using postgres 11. First post so I hope this goes OK. Thanks in advance!
icinga2 version:
icinga@icinga:~ $ sudo icinga2 -V
icinga2 - The Icinga 2 network monitoring daemon (version: r2.11.2-1)
Copyright (c) 2012-2020 Icinga GmbH (icinga.com/)
License GPLv2+: GNU GPL version 2 or later gnu.org/licenses/gpl2
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
System information:
Platform: Raspbian GNU/Linux
Platform version: 10 (buster)
Kernel: Linux
Kernel version: 4.19.97-v7+
Architecture: armv7l
Build information:
Compiler: GNU 8.3.0
Build host: runner-LTrJQZ9N-project-297-concurrent-0
Application information:
General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
Module list:
icinga@icinga:~ $ sudo icingacli module list
MODULE VERSION STATE DESCRIPTION
director 1.7.2 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.6.2 enabled Icinga monitoring module
reactbundle 0.7.0 enabled ReactPHP-based 3rd party libraries
The curl command checking API authentication from another post seems to work:
icinga@icinga:~ $ sudo curl -k -s -u root:cde75c8dad235e28 'https://192.168.2.18:5665/v1'
[sudo] password for icinga:
<html><head><title>Icinga 2</title></head><h1>Hello from Icinga 2 (Version: r2.11.2-1)!</h1><p>You are authenticated as <b>root</b>. Your user has the following permissions:</p> <ul><li>*</li></ul><p>More information about API requests is available in the <a href="https://icinga.com/docs/icinga2/latest/" target="_blank">documentation</a>.</p></html>
In my local setup, I don’t know what the FQDN should be. I tried ‘icinga.local’, but got further using simply ‘icinga’.
The listen port seems to be correct:
icinga@icinga:~ $ sudo netstat -tulpen | grep 5665
tcp 0 0 0.0.0.0:5665 0.0.0.0:* LISTEN 109 167111 16121/icinga2
The web error message is:
I was unable to re-establish a connection to the Endpoint "icinga" (192.168.2.18:5665). When reconnecting to the configured Endpoint (icinga:5665) I get an error: CURL ERROR: Connection timed out after 3001 milliseconds Please re-check your Icinga 2 endpoint configuration (KickstartHelper.php:375)
Screenshot with error message is on the next post.