I. installation environment: System Version: Centos 5.3 64-bit here cacti: http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz、official installation :* * LAMP environment deployment:
Here is how to install LAMP in yum in 5 minutes:
Yum install httpd mysql-server php-mysql-y
1. Install the corresponding lib library before installing rrdtool:
yum install cairo-devel libxml2-devel pango pango-devel –y
tar xzf rrdtool-1.4.5.tar.tar
cd rrdtool-1.4.5
./configure --prefix=/usr/local/rrdtool/
make
make install
ln -s /usr/local/rrdtool/bin/* /usr/local/bin/
2. Install SNMP:
tar xzf net-snmp-5.4.3.tar.gz
cd net-snmp-5.4.3
./configure --prefix=/usr/local/net-snmp/
make
make install
ln -s /usr/local/net-snmp/bin/* /usr/local/bin/
cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf
/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf
echo “/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf” >>/etc/rc.local
Here I actually use yum install net-snmp-y to install it. 3. Install cacti
Tar xzf cacti-0.8.7g.tar.gz & cp cacti-0.8.7g/usr/local/apache2/htdocs/cacti
Next, create a cacti database and configure it as follows:
Mysql-uroot-p enter your password to enter the database, and then create the database:
Create database cacti; create a database
Grant all on cacti. * to cactiuser @ 'localhost' identified by '000000'; create a user and authorize
Flush privileges; refresh permission
4. After configuring mysql, import the cacti data to the cacti database:
Mysql-ucactiuser-p cacti </usr/local/apache2/htdocs/cacti. SQL
Enter cacituser's password 123456.
5. Add the following to crontab: */1 *****/usr/bin/php/var/www/html/cacti/poller. php 3. After the above configuration is complete, we can directly install it. Access http: // server ip/cacti/install/index directly. php. If an error is reported, the problem is solved: It is not safe to rely on the system's timezone settings php.
Iv. cacti Optimization
When we have thousands of servers and a single cacti server is slow to check, what should we do? In this case, we can consider optimizing the mysql database, creating indexes, and using the spine training method!
This article from the "Wu guangke-Focus on automated O & M" blog, please be sure to keep this source http://wgkgood.blog.51cto.com/1192594/563574