How to install FAN under RHEL 5.X

FAN is based on a minimal CentOS. But it’s possible to install all FAN’s packages under RHEL. This post explain how to install all packages FAN 2.1 under Red Hat Enterprise Server 5.X 32 bits

Mount iso images over loopback device

For example, download FAN-2.1.iso in /tmp

# mkdir -p /mnt/isoFAN
# mount -o loop /tmp/FAN-2.1.iso /mnt/isoFAN

I suppose you have rhel-server-5.4-i386-dvd.iso in /tmp

# mkdir -p /mnt/isoRHEL
# mount -o loop /tmp/rhel-server-5.4-i386-dvd.iso /mnt/isoRHEL

Add a new repository for YUM

# vi /etc/yum.repos.d/myiso.repo

Cpoy and paste :

[iso-FAN]
enabled = 0
name = iso FAN
baseurl = file:///mnt/isoFAN
gpgcheck = 0

[iso-RHEL]
enabled = 1
name = iso RHEL
baseurl = file:///mnt/isoRHEL/Server
gpgcheck = 0

Install FAN packages

 

# yum install --enablerepo=iso-FAN php
rrdtool-php \
php-ldap \
postfix \
ntp \
vim-enhanced \
rrdtool \
php-snmp \
rrdtool-perl \
rsyslog \
rsyslog-mysql \
dokuwiki \
dokuwiki-fantemplate \
dokuwiki-fan-documentation \
dokuwiki-multilingual-plugin \
wikigenerator \
radiusclient \
nagios \
nagios-plugins \
nagios-plugins-setuid \
nagios-ndoutils \
nagios-nrpe \
nagios-plugins-nrpe \
nagios-nsca \
nagios-nsca-client \
nagios-compaq-plugins \
nagios-snmp-plugins \
nagios-hitachi-plugins \
nagios-hp-plugins \
nagios-plugin-postgresql \
nagios-plugin-check-logfiles \
nagios-plugin-mysql-health \
nagios-plugins-ltb-project \
nagios-plugins-notify-by-jabber \
webinject \
fan-sendmailcolor \
pear-centreon \
centreon-core \
centreon-plugins \
centreon-storage \
centreon-trap \
centreon-www \
fan-html \
fan-repo \
centreon-database \
nagios-ndoutils-database \
nagvis \
NagVis-Iconset-Big-Folder-Nuvola \
NagVis-Iconset-Big-HDD \
NagVis-Iconset-Big-Thermo \
NagVis-Iconset-Crystal-Folder \
NagVis-Iconset-Lemon \
NagVis-Iconset-Medium-HDD \
NagVis-Iconset-Medium-Thermo \
NagVis-Iconset-Printer \
NagVis-Iconset-Small-Thermo \
NagVis-Iconset-Standard-Mini \
NagVis-Shapes-Server-Dropline \
NagVis-Shapes-Server-Nuvola \

Post installation

Run :

# chkconfig --level 345 mysqld on
# chkconfig --level 345 snmpd on
# chkconfig --level 12345 rsyslogd on

Delete temporaly files
After the installation, delete isoFAN.repo

# rm /etc/yum.repos.d/myiso.repo
# umount /mnt/isoFAN
# umount /mnt/isoRHEL

Finish

Open your browser and enter the FAN IP’s : http://IP_FAN/

For authentification, use login “nagiosadmin” and password “nagiosadmin”.