|| what is icinga web

Icinga Web is an online portal to view Icinga monitoring results and send commands to the Icinga Core. Host and service status, history, notifications and status maps are available to keep a check on the health of your network in real-time. :: icinga web

|| Required
you must have a running MySQL and PHP (with PEAR and CLI) environment and Icinga, Icinga-API and IDOUtils are running as well.

|| how to install icinga-web on Linux Debian
| installing php5 on debian 6.0

# apt-get install php5 php5-cli php-pear php5-xmlrpc php5-xsl php5-gd php5-ldap php5-mysql php5-pgsql 

| edit php.ini for memory_limit

# vi /etc/php5/cli/php.ini
memory_limit=128M

| downloading icinga-web packages

# cd /usr/src/
# wget //sourceforge.net/projects/icinga/files/icinga-web/1.3.1/icinga-web-1.3.1.tar.gz

| compiling / build icinga web from source

# tar -xzf icinga-web-1.3.1.tar.gz
# cd icinga-web-1.3.1
# ./configure --prefix=/usr/local/icinga-web --with-web-user=www-data --with-web-group=www-data --with-web-path=/icinga-web --with-web-apache-path=/etc/apache2/conf.d --with-db-type=mysql  --with-db-host=localhost  --with-db-port=3306  --with-db-name=icinga_web --with-db-user=icinga_web --with-db-pass=icinga_web --with-icinga-api=/usr/local/icinga/share/icinga-api --with-api-type=CONNECTION_IDO --with-api-subtype=mysql --with-api-host=localhost --with-api-port=3306 --with-api-socket=none
# make install
# make install-apache-config
# make install-done
# make testdeps

| create database for icinga-web

mysql> GRANT USAGE ON *.* TO 'icinga_web'@'localhost' IDENTIFIED BY 'icinga_web';
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX ON icinga_web.* TO 'icinga_web'@'localhost';
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

| initialize icinga-web db

# make db-initialize

| configure xml database icinga web

# cd /usr/local/icinga-web/
# vi app/config/databases.xml

check on database name, username and password, like:


                        

                                
                                mysql://icinga_web:[email protected]:3306/icinga_web

                                
                                
                                

                                
                                utf8

                                
                                
                                        
                                        CONSERVATIVE
                                

                                
                                %core.module_dir%/AppKit/lib/database/models/generated
                                %core.module_dir%/AppKit/lib/database/models

                        

| configure xml for icinga-core

# vi app/modules/Web/config/icinga-io.xml

checking on database connection, database name, username anda password, like:

                                
                                
                                        
                                        IcingaApi::CONNECTION_IDO

                                        
                                        mysql
                                        localhost
                                        3306

                                        
                                        
                                        icinga
                                        icinga
                                        icinga
                                        icinga_
                                        

                                

| configure module.xml for db connection

# vi app/modules/Web/config/module.xml

add these line before </module> :

                                
                                
                                        
                                        IcingaApi::CONNECTION_IDO

                                        
                                        mysql
                                        localhost
                                        3306

                                        
                                        
                                        icinga
                                        icinga
                                        icinga
                                        icinga_
                                        

                                
  

| clear cache icingan web

# /usr/local/icinga-web/bin/clearcache.sh

| reload mod_rewrite on httpd / apache

# a2enmod rewrite

|| restarting httpd / apache

# /etc/init.d/apache2 restart

|| testing icingan web
open your browser and goto:

//yourhostname.tld/icinga-web

|| link
| google
| icinga-web

Hi, I’m Sysadmin.ID

2 Comments

Leave a Reply

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