How to Install Icinga 2 and Icinga Web 2 on Fedora and RHEL/CentOS

How to Install Icinga To Monitor Your Servers and Services On Fedora &  RHEL/CentOS 


Requirements

A basic LAMP installation on RHEL/CentOS 7.0 without MySQL and PhpMyAdmin but with these PHP modules: php-cli php-pear php-xmlrpc php-xsl php-pdo php-soap php-gd

Installing Icinga Monitoring Tool

Step1 :- rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
OR Click Here to Find More Latest Version of
https://packages.icinga.com/epel/
sudo add-apt-repository ppa:formorer/icinga

Step2 :- yum install icinga icinga-doc

Step3 :- yum install icinga-gui


Step4 :- wget http://pkgs.repoforge.org/icinga/icinga-gui-1.8.4-4.el6.rf.x86_64.rpm
OR Click Here to Find More Latest Version of
https://packages.icinga.com/epel/

mkdir icinga-gui
mv icinga-gui-* icinga-gui
cd icinga-gui
rpm2cpio icinga-gui-* | cpio -idmv
cp -r etc/* /etc/
cp -r usr/* /usr/
cp -r var/* /var/

Modify Icinga Apache Configuration file and System Permissions
nano /etc/httpd/conf.d/icinga.conf
ScriptAlias /icinga/cgi-bin "/usr/lib64/icinga/cgi"

<Directory "/usr/lib64/icinga/cgi">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   AuthName "Icinga Access"
   AuthType Basic
   AuthUserFile /etc/icinga/passwd

   <IfModule mod_authz_core.c>
      # Apache 2.4
      <RequireAll>
         Require all granted
         # Require local
         Require valid-user
      </RequireAll>
   </IfModule>


   <IfModule !mod_authz_core.c>
      # Apache 2.2
      Order allow,deny
      Allow from all
      #  Order deny,allow
      #  Deny from all
      #  Allow from 127.0.0.1
      Require valid-user
    </IfModule>
 </Directory>

Alias /icinga "/usr/share/icinga/"

<Directory "/usr/share/icinga/">

#  SSLRequireSSL
   Options None
   AllowOverride All
   AuthName "Icinga Access"
   AuthType Basic
   AuthUserFile /etc/icinga/passwd

   <IfModule mod_authz_core.c>
      # Apache 2.4
      <RequireAll>
         Require all granted
         # Require local
         Require valid-user
      </RequireAll>
   </IfModule>

   <IfModule !mod_authz_core.c>
      # Apache 2.2
      Order allow,deny
      Allow from all
      #  Order deny,allow
      #  Deny from all
      #  Allow from 127.0.0.1
      Require valid-user
   </IfModule>
</Directory>

usermod -aG icinga apache
chown -R icinga:icinga /var/spool/icinga/*
chgrp -R icinga /etc/icinga/*
chgrp -R icinga /usr/lib64/icinga/*
chgrp -R icinga /usr/share/icinga/*

nano /etc/selinux/config
SELINUX=disabled

htpasswd -cm /etc/icinga/passwd icingaadmin
systemctl start icinga
systemctl start httpd



Install Nagios Plugins and Access Icinga Web Interface
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
OR https://packages.icinga.com/epel/ 
 
yum install yum install nagios-plugins nagios-plugins-all


http://localhost:2812” or “http://example.com:2812“ or ip address also can use
icingaadmin as username and the password that you changed earlier

----------------------xxx----------------------------------xxx----------------------------------

0 Comments