First to install the Epel extension source
Yum Install Epel-release
Then install HTTP PHP MySQL separately
Yum install httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel
Installing cacti NET-SNMP RRDtool
Yum install-y cacti Net-snmp net-snmp-utils rrdtool
Start the service
/etc/init.d/mysqld start
/ETC/INIT.D/HTTPD start
/ETC/INIT.D/SNMPD start
Edit httpd configuration file
Vim/etc/httpd/conf.d/cacti.conf
Change deny from all to allow from all
/ETC/INIT.D/HTTPD restart
Import data Create cacti Library
MYSQL-UROOT-E "CREATE Database Cacti"
Create cacti User
MYSQL-UROOT-E "Grant all on cacti.*to ' cacti ' @ ' 127.0.0.1 ' identified by ' cacti ';"
Import SQL file
Mysql-uroot Cacti </usr/share/doc/cacti-0.8.8b/cacti.sql
Edit Cacti configuration file
vim/usr/share/cacti/include/config.php changes as follows
$database _type = "MySQL";
$database _default = "cacti";
$database _hostname = "127.0.0.1";
$database _username = "cacti";
$database _password = "cacti";
$database _port = "3306";
$database _ssl = false;
Configure SNMPD
In line 41st, modify the
Com2sec notconfiguser 127.0.0.1 Public
(if this is a monitored machine, as long as the 127.0.0.1 modified to cacti installed server IP address, the monitored server only need to install SNMPD, and open)
In line 62nd, modify the
Access Notconfiggroup "" Any noauth exact none none
Remove the previous # number in line 85th
View all included. 1 80
Web Access cacti and installation
http://ip/cacti/
Click "Next" and "finish" at two.
Perform poller.php, generate graphs, join scheduled Tasks
CRONT-E Increase
*/5 * * * */usr/bin/php/usr/share/cacti/poller.php
Client Installation SNMP
Yum Install-y Net-snmp
Modify snmpd.conf
Modify Syslocation and Syscontact, where syslocation can write a machine ip,syscontact writing the admin mailbox
Start SNMP
Service SNMPD Start
Login to the Cacti management background, click Console, click Device, in the top right corner, click "Add"
Description Write machine IP or you customize a name
Hostname Machine IP
Host Template Select/ucd/net SNMP Host
Version 2 of SNMP version selected