I have Gentoo Linux installed, and I am trying to get icinga2 configured and run properly using icingaweb2 and director using PostGreSQL 13.3 db. this problem is generic and not related to gentoo linux itself because i did most of the stuff manually.
so I emerged icinga2
and execute icinga2 node wizard
to set it up as a master node.
then I emerged icingaweb2
and downloaded and configure the relevant icingaweb2 modules for director.
so these are the enabled features in icinga:
# icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf graphite icingadb ido-mysql influxdb livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker command ido-pgsql mainlog notification
and these are the installed modules in incigaweb2:
# icingacli module list
MODULE VERSION STATE DESCRIPTION
director 1.8.0 enabled Director - Config tool for Icinga 2
doc 2.8.2 enabled Documentation module
incubator 0.6.0 enabled Incubator provides bleeding-edge libraries
ipl v0.5.0 enabled The Icinga PHP library
monitoring 2.8.2 enabled Icinga monitoring module
reactbundle 0.9.0 enabled ReactPHP-based 3rd party libraries
setup 2.8.2 enabled Setup module
I opened icingaweb2 web interface and went to Configuration
->Module
->Director
and configured the api user for director, clicked on import, and it freezes there while trying to import the configuration.
under /etc/icingaweb2/resources.ini
I have the following db resources configured:
[icingaweb_db]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "icingaweb2"
username = "icingaweb2"
password = "XXXXX"
charset = ""
use_ssl = "0"
[icinga_ido]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "icinga"
username = "icinga"
password = "XXXXX"
charset = ""
use_ssl = "0"
[director_db]
type = "db"
db = "pgsql"
host = "localhost"
port = "5432"
dbname = "director"
username = "director"
password = "XXXXX"
charset = "UTF8"
use_ssl = "0"
and under /etc/icingaweb2/modules/director
I have two files
config.ini
with:
[db]
resource = "director_db"
kickstart.ini
with:
[config]
endpoint = tux-router
; host = 127.0.0.1
; port = 5665
username = XXXX
password = XXXX
when I try to restart the process of configuring director I just connect to my postgresql database and run:
drop database director;
create database director;
alter database director owner to director;
then I click on Icinga director
in icingaweb2 web interface and click on Create schema
fill in the icinga2 api user credentials and click Import
then When I go to the icinga director's activity log I notice that there are 243 pending changes that needs to be deployed. when I click on deploy changes, it deploys changes successfully (of course i needed to have icinga-director service started before doing that)
the problem is that after the import, icinga director is empty. there are no hosts, services, commands, host templates, services templates or command templates configured at all. the only list that i see that is filled is the external commands
. any ideas what went wrong?