RRDtool is used to do drawing, but still need the support of other installation packages, Cairo-devel Libxml2-devel Pango pango-devel, and so on, here we use the Yum installation is not necessary one by one of the compiled installation, too waste of time
1,rrdtool Installation
[Root@test3 ~]# tar zvxf rrdtool-1.4.4.tar.gz
[Root@test3 ~]# CD rrdtool-1.4.4
[Root@test3 rrdtool-1.4.4]#./configure--prefix=/usr/local/rrdtool
[Root@test3 rrdtool-1.4.4]# make && make install
[Root@test3 rrdtool-1.4.4]# ln-s/usr/local/rrdtool/bin/*/usr/local/bin/
2,SNMP Installation
I'm going to use Yum to install it right here.
[Root@test3 ~]# yum-y Install net-snmp*
[ROOT@TEST3 ~]# Service snmpd restart
stopping snmpd: [OK]
Starting snmpd: [OK]
[Root@test3 ~]# chkconfig snmpd on
3,CACTI Installation
[Root@test3 ~]# MV cacti-0.8.7g/*/usr/local/apache/htdocs/
[Root@test3 ~]# mysql-uroot-p123456
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 2
Server Version:5.1.49-log MySQL Community Server (GPL)
Type ' help, ' or ' \h ' for help. Type ' \c ' to clear the buffer.
mysql> CREATE database cacti; Creating a cacti Database
Query OK, 1 row affected (0.09 sec)
mysql> INSERT INTO Mysql.user (Host,user,password) VALUES (' localhost ', ' cacti ', password (' cacti123 ')); Create cacti user in database
Query OK, 1 row affected, 3 warnings (0.10 sec)
mysql> flush Privileges;
Query OK, 0 rows affected (0.04 sec)
Mysql> Grant all on cacti.* to cacti@ ' localhost ' identified by ' cacti123 ';
Authorize the database cacti to cacti users
Query OK, 0 rows affected (0.03 sec)
[Root@test3 ~]# useradd cactiuser Create a local cacti user
[Root@test3 ~]# cd/usr/local/apache/htdocs/
[Root@test3 htdocs]# mysql-ucacti-pcacti123 Cacti < Cacti.sql
After you pour the data into the database cacti to modify the configuration file to ensure that you can connect to the database cacti
[Root@test3 htdocs]# mysql-ucacti-pcacti123 Cacti < Cacti.sql
[Root@test3 htdocs]# pwd
/usr/local/apache/htdocs
[Root@test3 htdocs]# Vim include/config.php
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/tools/