2014-02-05 15:53:22 +01:00
|
|
|
## <a id="setting-up-icinga2-user-interfaces"></a> Setting up Icinga 2 User Interfaces
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
Icinga 2 is compatible to Icinga 1.x user interfaces by providing additional
|
|
|
|
features required as backends.
|
|
|
|
|
|
|
|
Furthermore these interfaces (and somewhere in the future an Icinga 2
|
|
|
|
exclusive interface) can be used for the newly created `Icinga Web 2`
|
|
|
|
user interface.
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
Some interface features will only work in a limited manner due to
|
|
|
|
[compatibility reasons](#differences-1x-2), other features like the
|
|
|
|
statusmap parents are available through intelligent compatibility layers
|
|
|
|
for dumping the host dependencies as parents.
|
|
|
|
Special restrictions are noted specifically in the sections below.
|
|
|
|
|
2014-03-07 12:27:54 +01:00
|
|
|
> **Tip**
|
|
|
|
>
|
2014-03-19 13:02:59 +01:00
|
|
|
> Choose your preferred interface. There's no need to install [Classic UI](#setting-up-icinga-classic-ui)
|
2014-03-07 12:27:54 +01:00
|
|
|
> if you prefer [Icinga Web](#setting-up-icinga-web) or [Icinga Web 2](#setting-up-icingaweb2) for example.
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
### <a id="setting-up-icinga-classic-ui"></a> Setting up Icinga Classic UI
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
Icinga 2 can write `status.dat` and `objects.cache` files in the format that
|
|
|
|
is supported by the Icinga 1.x Classic UI. External commands (a.k.a. the
|
|
|
|
"command pipe") are also supported. It also supports writing Icinga 1.x
|
|
|
|
log files which are required for the reporting functionality in the Classic UI.
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
#### <a id="installing-icinga-classic-ui"></a> Installing Icinga Classic UI
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
The Icinga package repository has both Debian and RPM packages. You can install
|
|
|
|
the Classic UI using the following packages:
|
|
|
|
|
|
|
|
Distribution | Packages
|
|
|
|
--------------|---------------------
|
|
|
|
Debian | icinga2-classicui
|
|
|
|
all others | icinga2-classicui-config icinga-gui
|
|
|
|
|
2014-04-06 21:15:25 +02:00
|
|
|
The Debian packages require additional packages which are provided by the
|
|
|
|
[Debian Monitoring Project](http://www.debmon.org) repository.
|
2014-03-07 12:27:54 +01:00
|
|
|
|
2014-04-06 21:15:25 +02:00
|
|
|
On all distributions other than Debian you may have to restart both your web
|
|
|
|
server as well as Icinga 2 after installing the Classic UI package.
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
Verify that your Icinga 1.x Classic UI works by browsing to your Classic
|
|
|
|
UI installation URL:
|
|
|
|
|
|
|
|
Distribution | URL | Default Login
|
|
|
|
--------------|--------------------------------------------------------------------------|--------------------------
|
|
|
|
Debian | [http://localhost/icinga2-classicui](http://localhost/icinga2-classicui) | asked during installation
|
|
|
|
all others | [http://localhost/icinga](http://localhost/icinga) | icingaadmin/icingaadmin
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
### <a id="setting-up-icinga-web"></a> Setting up Icinga Web
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
Icinga 2 can write to the same schema supplied by `Icinga IDOUtils 1.x` which
|
|
|
|
is an explicit requirement to run `Icinga Web` next to the external command pipe.
|
|
|
|
Therefore you need to setup the DB IDO feature remarked in the previous sections.
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
#### <a id="installing-icinga-web"></a> Installing Icinga Web
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
The Icinga package repository has both Debian and RPM packages. You can install
|
|
|
|
the Classic UI using the following packages:
|
|
|
|
|
|
|
|
Distribution | Packages
|
|
|
|
--------------|-------------------------------------
|
|
|
|
RHEL/SUSE | icinga-web icinga-web-{mysql,pgsql}
|
|
|
|
Debian | icinga-web
|
|
|
|
|
|
|
|
Additionally you need to setup the `icinga_web` database.
|
|
|
|
|
2014-04-06 21:15:25 +02:00
|
|
|
The Icinga Web RPM packages install the schema files into
|
|
|
|
`/usr/share/doc/icinga-web-*/schema` (`*` means package version).
|
|
|
|
The Icinga Web dist tarball ships the schema files in `etc/schema`.
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-04-06 21:15:25 +02:00
|
|
|
On SuSE-based distributions the schema files are installed in
|
|
|
|
`/usr/share/doc/packages/icinga-web/schema`.
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-04-07 14:01:58 +02:00
|
|
|
Additionally you need to enable the `command` feature:
|
2014-01-24 18:22:19 +01:00
|
|
|
|
|
|
|
# icinga2-enable-feature command
|
|
|
|
|
|
|
|
Then edit the Icinga Web configuration for sending commands in `/etc/icinga-web/conf.d/access.xml`
|
|
|
|
(RHEL) or `/etc/icinga-web/access.xml` (SUSE) setting the command pipe path
|
|
|
|
to the default used in Icinga 2. Make sure to clear the cache afterwards.
|
|
|
|
|
|
|
|
# vim /etc/icinga-web/conf.d/access.xml
|
|
|
|
|
|
|
|
<write>
|
|
|
|
<files>
|
|
|
|
<resource name="icinga_pipe">/var/run/icinga2/cmd/icinga.cmd</resource>
|
|
|
|
</files>
|
|
|
|
</write>
|
|
|
|
|
|
|
|
# icinga-web-clearcache
|
|
|
|
|
|
|
|
Verify that your Icinga 1.x Web works by browsing to your Web installation URL:
|
|
|
|
|
|
|
|
Distribution | URL | Default Login
|
|
|
|
--------------|-------------------------------------------------------------|--------------------------
|
|
|
|
Debian | [http://localhost/icinga-web](http://localhost/icinga-web) | asked during installation
|
|
|
|
all others | [http://localhost/icinga-web](http://localhost/icinga-web) | root/password
|
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
### <a id="setting-up-icingaweb2"></a> Setting up Icinga Web 2
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-03-09 22:30:56 +01:00
|
|
|
Icinga Web 2 currently supports `status.dat`, `DB IDO`, or `Livestatus` as backends.
|
2014-01-24 18:22:19 +01:00
|
|
|
Please consult the INSTALL documentation shipped with `Icinga Web 2` for
|
|
|
|
further instructions.
|
|
|
|
|
2014-04-06 21:15:25 +02:00
|
|
|
Icinga Web 2 is still under development. Rather than installing it
|
|
|
|
yourself you should consider testing it using the available Vagrant
|
|
|
|
demo VM.
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-02-05 15:53:22 +01:00
|
|
|
### <a id="additional-visualization"></a> Additional visualization
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-04-06 10:57:51 +02:00
|
|
|
There are many visualization addons which can be used with Icinga 2.
|
2014-01-24 18:22:19 +01:00
|
|
|
|
2014-04-06 10:57:51 +02:00
|
|
|
Some of the more popular ones are PNP, inGraph (graphing performance data),
|
|
|
|
Graphite, and NagVis (network maps).
|