Setup:Prerequisite/Centos/Fedora/RHEL

From Wiki Centreon

Jump to: navigation, search

1. Installation of prerequisites

Warning: In CentOS and RHEL5, following packages are not included in standard repositories. To install pre-requisites, you need to add "RPM Forge" repository:

# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm (think to change i386 if you have a x86_64 arch)
# wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

Use your favourite editor to open "RPM-GPG-KEY.dag.txt", and remove the first few lines. The file should start with: "-----BEGIN PGP PUBLIC KEY BLOCK-----"

# rpm --import RPM-GPG-KEY.dag.txt
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm


program group command
Updates
yum update
yum upgrade
Installing Apache2
yum install httpd 
usermod -U apache
Installing GD modules
yum install gd fontconfig-devel libjpeg-devel libpng-devel gd-devel perl-GD
Installing MySQL
yum install openssl-devel perl-DBD-MySQL mysql-server mysql-devel
Installing PHP
yum install php php-mysql php-gd
Installing PHP Dependencies
yum install php-ldap php-xml php-mbstring
Installing DBI modules
yum install perl-DBI perl-DBD-MySQL
Installing PERL modules
yum install perl-Config-IniFiles
Installing RRDTools
yum install rrdtool perl-rrdtool
Installing SNMP
yum install perl-Crypt-DES perl-Digest-SHA1 perl-Digest-HMAC net-snmp-utils
yum install perl-Socket6 perl-IO-Socket-INET6 net-snmp net-snmp-libs php-snmp dmidecode lm_sensors perl-Net-SNMP net-snmp-perl
Misc
yum install fping cpp gcc gcc-c++ libstdc++ glib2-devel
PEAR

Installation

yum install php-pear 

Configuration

pear channel-update pear.php.net 

Using a proxy with pear

pear config-set http_proxy http://my_proxy.com:port 

Update Pear package

pear upgrade-all

SNMP Configuration To configure SNMPD, you muste create the snmpd configuration file "snmpd.conf" in the "/etc/snmp/" directory. The snmpd file configuration must contain the snmpd community (with "public" like snmp community in our example):

rocommunity public 127.0.0.1/32

In some Linux-distributions a new (safer?) default configuration for snmpd is used, see Setup:SNMPConfiguration for more information.

Personal tools