Install Icinga advanced web interface on CentOS/RHEL 5 or 6, Fedora

Overview

Earlier I wrote a post about installing icinga, this post extends its capabilities by adding an advanced interface to it. The new interface is quite cool and you should give it a try. I assume that you already have icinga with idoutils up and running, if not then please follow the guide here and come back to this post.

Install Icinga advanced web interface on CentOS/RHEL 5 or 6. Fedora

Lets first install some prerequistes


# yum install php php-xml php-pear php-mysql php-ldap php-soap php-xmlrpc php-gd php-pgsql php-pear-phing

Download the latest web interface package and run configure, make and make testdeps. Make sure you see OK against everything, once done execute make to complete the installation.


# cd /opt/
# wget http://sourceforge.net/projects/icinga/files/icinga-web/1.8.1/icinga-web-1.8.1.tar.gz/download
# tar zxvf icinga-web-1.8.1.tar.gz
# cd icinga-web-1.8.1
# ./configure --prefix=/usr/share/icinga-web --datadir=/usr/share/icinga-web --datarootdir=/usr/share/icinga-web --with-web-user=apache --with-web-group=apache --with-conf-dir=/etc/icinga-web/conf.d --with-web-apache-path=/etc/httpd/conf.d --with-api-cmd-file=/var/spool/icinga/cmd/icinga.cmd --with-log-dir=/var/log/icinga-web --with-cache-dir=/var/cache/icinga-web
# make testdeps
# make install
# make install-apache-config

Create the database for icinga web


# mysql -u root -p
mysql> CREATE DATABASE icinga_web;
mysql> GRANT USAGE ON *.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'icinga_web' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX ON icinga_web.* TO 'icinga_web'@'localhost';
mysql> quit

Next create the db schema i.e tables, indexes, functions etc


# mysql -u root -p icinga_web < /opt/icinga-web-1.8.0/etc/schema/mysql.sql

Open the web brower and point it to

http://ip-address/icinga-web

username root
password password

icinga web01 300x176 Install Icinga advanced web interface on CentOS/RHEL 5 or 6, Fedora