A lightweight and extensible web interface to keep an eye on your environment. Analyse problems and act on them.
Go to file
Alexander Fuhr d0651e9e7f Rename 'service current state' to 'service detail information' header 2014-11-13 14:04:23 +01:00
.vagrant-puppet Merge branch 'master' into feature/setup-wizard-7163 2014-11-11 09:44:11 +01:00
application Remove constant ICINGAWEB_APPDIR 2014-11-13 09:33:31 +01:00
bin Do not try to detect the library path in icingacli 2014-11-12 16:58:36 +01:00
config Introduce Groups from LDAP to User Object 2014-10-01 16:03:42 +02:00
doc Merge branch 'master' into feature/setup-wizard-7163 2014-10-30 10:38:21 +01:00
etc Drop old schema files 2014-11-04 12:41:17 +01:00
library Add getVendorDir() in favor of constant ICINGAWEB_VENDORS 2014-11-13 09:38:04 +01:00
modules Rename 'service current state' to 'service detail information' header 2014-11-13 14:04:23 +01:00
packages Merge branch 'master' into feature/setup-wizard-7163 2014-11-12 10:08:28 +01:00
public Add selection count hint in grids with help for hosts and services 2014-11-13 12:50:39 +01:00
test/php Merge branch 'master' into feature/setup-wizard-7163 2014-11-12 10:08:28 +01:00
var/log Fixed executable flags on normal files. 2014-02-18 09:42:13 +01:00
.gitattributes git: Ignore git related files on export 2014-07-10 14:04:12 +02:00
.gitignore Add development folder to .gitignore 2014-09-07 23:20:59 +02:00
COPYING License writer 2013-07-03 14:17:48 +02:00
Makefile.in Fix `make install-cli' 2014-07-03 16:50:20 +02:00
README.md Update README.md with general & install info 2014-08-11 17:21:43 +02:00
Vagrantfile Vagrant: assign 1024mb ram to the vm 2014-06-18 14:14:31 +02:00
aclocal.m4 Fixed executable flags on normal files. 2014-02-18 09:42:13 +01:00
configure Fix failing configure run due to removed index.php 2014-06-06 13:48:58 +02:00
configure.ac Fix failing configure run due to removed index.php 2014-06-06 13:48:58 +02:00
icingaweb2.spec spec: Use application name in install path 2014-09-13 00:16:45 +02:00
install-sh Add local install-sh 2013-07-03 14:07:55 +02:00

README.md

Icinga Web 2

Table of Contents

  1. [General Information](#general information)
  2. Installation
  3. Support
  4. Vagrant - Virtual development environment

General Information

Icinga Web 2 is the next generation monitoring web interface, framework and CLI tool developed by the Icinga Project.

Responsive and fast, rewritten from scratch supporting multiple backends and providing a CLI tool. Compatible with Icinga Core 2.x and 1.x.

Check the Icinga website for some insights.

Note

Icinga Web 2 is still in development and not meant for production deployment. Watch the development roadmap and Icinga website for release schedule updates!

Installation

Please navigate to doc/installation.md for updated details.

Support

Please head over to the community support channels in case of questions, bugs, etc.

Please make sure to provide the following details:

  • OS, distribution, version
  • PHP and/or MySQL/PostgreSQL version
  • Which browser and its version
  • Screenshot and problem description

Vagrant

Requirements

  • Vagrant 1.2+
  • Virtualbox 4.2.16+
  • a fairly powerful hardware (quad core, 4gb ram, fast hdd)

Note

The deployment of the virtual machine is tested against Vagrant starting with version 1.2. Unfortunately older versions will not work.

General

The Icinga Web 2 project ships with a Vagrant virtual machine that integrates the source code with various services and example data in a controlled environment. This enables developers and users to test Livestatus, status.dat, MySQL and PostgreSQL backends as well as the LDAP authentication. All you have to do is install Vagrant and run:

vagrant up

Note

The first boot of the vm takes a fairly long time because you'll download a plain CentOS base box and Vagrant will automatically provision the environment on the first go.

After you should be able to browse localhost:8080/icingaweb.

Environment

Forwarded ports:

Proctocol Local port (virtual machine host) Remote port (the virtual machine)
SSH 2222 22
HTTP 8080 80

Installed packages:

  • Apache2 with PHP enabled
  • PHP with MySQL and PostgreSQL libraries
  • MySQL server and client software
  • PostgreSQL server and client software
  • Icinga prerequisites
  • OpenLDAP servers and clients

Installed users and groups:

  • User icinga with group icinga and icinga-cmd
  • Webserver user added to group icinga-cmd

Installed software:

  • Icinga with IDOUtils using a MySQL database
  • Icinga with IDOUtils using a PostgreSQL database
  • Icinga 2

Installed files:

  • /usr/share/icinga/htpasswd.users account information for logging into the Icinga classic web interface for both icinga instances
  • /usr/lib64/nagios/plugins Monitoring Plugins for all Icinga instances

Icinga with IDOUtils using a MySQL database

Installation path: /usr/local/icinga-mysql

Services:

  • icinga-mysql
  • ido2db-mysql

Connect to the icinga mysql database using the following command:

mysql -u icinga -p icinga icinga

Access the Classic UI (CGIs) via localhost:8080/icinga-mysql. For logging into the Icinga classic web interface use user icingaadmin with password icinga.

Icinga with IDOUtils using a PostgreSQL database

Installation path: /usr/local/icinga-pgsql

Services:

  • icinga-pgsql
  • ido2db-pgsql

Connect to the icinga mysql database using the following command:

sudo -u postgres psql -U icinga -d icinga

Access the Classic UI (CGIs) via localhost:8080/icinga-pgsql. For logging into the Icinga classic web interface use user icingaadmin with password icinga.

Monitoring Test Config

Test config is added to both the MySQL and PostgreSQL Icinga instance utilizing the Perl module Monitoring::Generator::TestConfig to generate test config to /usr/local/share/misc/monitoring_test_config which is then copied to /etc/conf.d/test_config/. Configuration can be adjusted and recreated with /usr/local/share/misc/monitoring_test_config/recreate.pl. Note that you have to run

vagrant provision

in the host after any modification to the script just mentioned.

MK Livestatus

MK Livestatus is added to the Icinga installation using a MySQL database.

Installation path:

  • /usr/local/icinga-mysql/bin/unixcat
  • /usr/local/icinga-mysql/lib/mk-livestatus/livecheck
  • /usr/local/icinga-mysql/lib/mk-livestatus/livestatus.o
  • /usr/local/icinga-mysql/etc/modules/mk-livestatus.cfg
  • /usr/local/icinga-mysql/var/rw/live

Example usage:

echo "GET hosts" | /usr/local/icinga-mysql/bin/unixcat /usr/local/icinga-mysql/var/rw/live

LDAP example data

The environment includes a openldap server with example data. Domain suffix is dc=icinga,dc=org. Administrator (rootDN) of the slapd configuration database is cn=admin,cn=config and the administrator (rootDN) of our database instance is cn=admin,dc=icinga,dc=org. Both share the password admin.

Examples to query the slapd configuration database:

ldapsearch -x -W -LLL -D cn=admin,cn=config -b cn=config dn
ldapsearch -Y EXTERNAL -H ldapi:/// -LLL -b cn=config dn

Examples to query our database instance:

ldapsearch -x -W -LLL -D cn=admin,dc=icinga,dc=org -b dc=icinga,dc=org dn
ldapsearch -Y EXTERNAL -H ldapi:/// -LLL -b dc=icinga,dc=org dn

This is what the dc=icinga,dc=org DIT looks like:

dn: dc=icinga,dc=org

dn: ou=people,dc=icinga,dc=org

dn: ou=groups,dc=icinga,dc=org

dn: cn=Users,ou=groups,dc=icinga,dc=org cn: Users uniqueMember: cn=Jon Doe,ou=people,dc=icinga,dc=org uniqueMember: cn=Jane Smith,ou=people,dc=icinga,dc=org uniqueMember: cn=John Q. Public,ou=people,dc=icinga,dc=org uniqueMember: cn=Richard Roe,ou=people,dc=icinga,dc=org

dn: cn=John Doe,ou=people,dc=icinga,dc=org cn: John Doe uid: jdoe

dn: cn=Jane Smith,ou=people,dc=icinga,dc=org cn: Jane Smith uid: jsmith

dn: cn=John Q. Public,ou=people,dc=icinga,dc=org cn: John Q. Public uid: jqpublic

dn: cn=Richard Roe,ou=people,dc=icinga,dc=org cn: Richard Roe uid: rroe

All users share the password password.

Testing the code

All software required to run tests is installed in the virtual machine. In order to run all tests you have to execute the following commands:

vagrant ssh -c /vagrant/test/php/runtests
vagrant ssh -c /vagrant/test/php/checkswag
vagrant ssh -c /vagrant/test/js/runtests
vagrant ssh -c /vagrant/test/js/checkswag
vagrant ssh -c /vagrant/test/frontend/runtests

runtests will execute unit and regression tests and checkswag will report code style issues.

Icinga 2

Installed from the Icinga snapshot package repository. The configuration is located in /etc/icinga2.

Example usage:

/etc/init.d/icinga2 (start|stop|restart|reload)

Log into Icinga Web 2

If you've configure LDAP as authentication backend (which is the default) use the following login credentials:

Username: jdoe Password: password

Have a look at [LDAP example data](#ldap example data) for more accounts.

Using MySQL as backend:

Username: icingaadmin Password: icinga