This small how-to briefly describes the installation of icinga 1.6.1 on debian squeeze 6.0 and details the install and configuration of the newest icinga-web (1.6.0).
Unfortunately, the latest icinga package version in debian are:
- stable: 1.0.2-2
- testing: 1.5.1-1
- icinga squeeze-backports: 1.5.1-1
Because of that we have two choices getting the latest 1.6.1 version of icinga:
Install from source or use the debian packages of icinga in unstable tree (icinga itself is very stable).
- simply add
deb http://ftp.debian.org/debian sid main
as new line in file /etc/apt/sources.list
- do an
apt-get -t unstable install icinga icinga-idoutils icinga-phpapi
- configure icinga & idoutils according to your needs (there is plenty information on the web on this)
- Clone recent icinga from git repository (the icinga debian maintainer won’t include icinga-web)
cd /usr/src && git clone git://git.icinga.org/icinga-web.git
- Build icinga-web
cd icinga-web/ && ./configure –with-api-cmd-file=/var/lib/icinga/rw/icinga.cmd –with-conf-dir=/etc/icinga-web –with-log-dir=/var/log/icinga-web –with-cache-dir=/var/cache/icinga-web
- Install Icinga-web
make install
- Install Apache2 config for Icinga-web
make install-apache-config
- Create icinga-web database in mysql
mysql -u root -p icinga_web < /usr/src/icinga-web/etc/schema/mysql.sql
- change database settings in configuration file for icinga itself and icinga-web
vi /usr/local/icinga-web/app/config/databases.xml
Line 28: mysql://icinga_web:password@localhost:3306/icinga_web
Line 79: mysql://icinga-idoutils:password@localhost:3306/icinga - Clear the cache
- You should now be able to login to icinga-web with username “root” and password “password” on http://localhost/icinga-web (change password afterwards)
have fun!
Next: Installation and integration of the new InGraph Grapher Addon into icinga-web
Source: Icinga Wiki

