2016-03-07 00:49:29 +01:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
These are the instructions for manual Director installations. You can
|
|
|
|
learn moree about how to automate this in the [automation](03-Automation.md) section
|
|
|
|
of this documentation.
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
* Icinga 2 (>= 2.4.3)
|
|
|
|
* Icinga Web 2 (>= 2.2.0)
|
|
|
|
* A database, MySQL (>= 5.1) or PostgreSQL (>= 9.1) database (MariaDB and
|
|
|
|
other forks are also fine)
|
|
|
|
* php5-curl
|
|
|
|
|
|
|
|
Database
|
|
|
|
--------
|
|
|
|
|
|
|
|
### Create an empty Icinga Director database
|
|
|
|
|
|
|
|
#### MySQL
|
|
|
|
|
|
|
|
mysql -e "CREATE DATABASE director CHARACTER SET 'utf8';
|
|
|
|
GRANT ALL ON director.* TO director@localhost IDENTIFIED BY 'some-password';"
|
|
|
|
|
|
|
|
#### PostgreSQL
|
|
|
|
|
|
|
|
|
|
|
|
psql -q -c "CREATE DATABASE director WITH ENCODING 'UTF8';"
|
|
|
|
psql director -q -c "CREATE USER director WITH PASSWORD 'some-password';
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE director TO director;"
|
|
|
|
|
|
|
|
|
|
|
|
Configure Icinga Web 2
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
In your web frontend please go to System / Configuration / Resources and create
|
|
|
|
a new database resource pointing to your newly created database. Please make
|
|
|
|
sure that you choose `utf8` as an encoding.
|
|
|
|
|
|
|
|
As with any Icinga Web 2 module, installation is pretty straight-forward. In
|
|
|
|
case you're installing it from source all you have to do is to drop the director
|
|
|
|
module in one of your module paths. You can examine (and set) the module path(s)
|
2016-03-07 21:42:02 +01:00
|
|
|
in `Configuration / General`. In a typical environment you'll probably drop the
|
2016-03-07 00:49:29 +01:00
|
|
|
module to `/usr/share/icingaweb2/modules/director`. Please note that the directory
|
|
|
|
name MUST be `director` and not `icingaweb2-module-director` or anything else.
|
|
|
|
|
|
|
|
Now go to your web frontend, Configuration, Modules, director - and enable the
|
|
|
|
module. Last but not least you have to tell the director module to use this newly
|
|
|
|
created database resource.
|