Icinga Director installation und integration in Icinga Web 2


apt install php5-curl git
cd /usr/share/icingaweb2/modules/
git clone https://github.com/Icinga/icingaweb2-module-director.git
Klone nach 'icingaweb2-module-director'...
remote: Counting objects: 19488, done.
remote: Compressing objects: 100% (119/119), done.
remote: Total 19488 (delta 47), reused 4 (delta 4), pack-reused 19361
Empfange Objekte: 100% (19488/19488), 4.55 MiB | 2.79 MiB/s, Fertig.
Löse Unterschiede auf: 100% (11998/11998), Fertig.
Prüfe Konnektivität... Fertig.
mv icingaweb2-module-director director


nano /etc/icingaweb2/resources.ini

mysql -e "CREATE DATABASE director CHARACTER SET 'utf8'; GRANT ALL ON director.* TO icinga_dat@localhost IDENTIFIED BY 'icinga';" -u root -p


[director_db]
type = "db"
db = "mysql"
host = "localhost"
dbname = "director"
username = "icinga_dat"
password = "icinga"
charset = "utf8"


icinga2 api setup
information/cli: Generating new CA.
information/base: Writing private key to '/var/lib/icinga2/ca/ca.key'.
information/base: Writing X509 certificate to '/var/lib/icinga2/ca/ca.crt'.
information/cli: Generating new CSR in '/etc/icinga2/pki/conzept.4b42.net.csr'.
information/base: Writing private key to '/etc/icinga2/pki/conzept.4b42.net.key'.
information/base: Writing certificate signing request to '/etc/icinga2/pki/conzept.4b42.net.csr'.
information/cli: Signing CSR with CA and writing certificate to '/etc/icinga2/pki/conzept.4b42.net.crt'.
information/pki: Writing certificate to file '/etc/icinga2/pki/conzept.4b42.net.crt'.
information/cli: Copying CA certificate to '/etc/icinga2/pki/ca.crt'.
information/cli: Adding new ApiUser 'root' in '/etc/icinga2/conf.d/api-users.conf'.
information/cli: Enabling the 'api' feature.
Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect.
Done.

Now restart your Icinga 2 daemon to finish the installation!
nano /etc/icinga2/conf.d/api-users.conf
object ApiUser "director" {
password = "bB1nosWO8QjIaG4"
permissions = [ "*" ]
}
service apache2 restart
service icinga2 restart



nano /etc/icinga2/zones.conf
/* 2016-12-22 Kevin Buehl */
object Zone "director-global" {
global = true
}