HOWTO install icinga-web 1.5.2 from RPM package on CentOS 6.0

Install the dependencies, download the package and install it. Restart the Webserver to activate the new apache config in /etc/httpd/conf.d/icinga-web.conf. Then connect to the MySQL database to setup a new user.

More about the package, here: http://epis.ch/dr

yum install php php-cli php-pear php-xmlrpc php-xsl php-pdo php-gd php-ldap php-mysql perl-Locale-PO
wget http://daniel.oetken.cc/files/icinga-web-1.5.2-1.el6.noarch.rpm
yum install icinga-web-1.5.2-1.el6.noarch.rpm
service httpd restart
mysql -u root -p

Execute these querys

CREATE DATABASE icinga_web;
 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;
 GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX
   ON icinga_web.* TO 'icinga_web'@'localhost';
 FLUSH PRIVILEGES ;
 quit

Import the Database scheme

cd /usr/share/icinga-web/etc/schema/
mysql -u root -p icinga_web < mysql.sql

Change the Database connection credentials

vim /etc/icinga-web/databases.xml

Caution! Now you have two databases, “icinga” the first one, is for all the monitored data. The second one is for the new Web UI _only_! In the “database.xml” you have to configure BOTH!

If the Web UI is still not working, see the logfiles!

//var/log/icinga-web/*.log
/var/log/messages
/var/log/icinga/icinga.log
/var/log/httpd/error_log

If you still don’t have any clue why it’s not working check the icinga-web test wiki

Try to login at http://localhost/icinga-web

user/password root/password

Source: icinga Documentation – icinga web from scratch

Leave a Reply

Your email address will not be published. Required fields are marked *