Install Icinga on CentOS/RHEL Fedora

Photo of author

By rasho

Icinga is an enterprise grade open source monitoring system which keeps watch over networks and any conceivable network resource, notifies the user of errors and recoveries and generates performance data for reporting. Scalable and extensible, Icinga can monitor complex, large environments across dispersed locations.
Icinga is a fork of Nagios and is backward compatible. So, Nagios configurations, plugins and addons can all be used with Icinga. Though Icinga retains all the existing features of its predecessor, it builds on them to add many long awaited patches and features requested by the user community.

Install Icinga

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 login screen
Icinga login screen

Leave a Comment