#### centOs 5 ########
1. yum update
######################
2. edit /etc/yum.repos.d/
vi /etc/yum.repos.d/dag.repo
[dag]name=Dag RPM Repository for Red Hat Enterprise Linuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=0enabled=1
######################
3. install httpdhttpd-2.2.3-6.el5.centos.1
#######################
4. install mysqlmysql-5.0.22-2.1
#######################
5.install
php.i386
php-devel.i386 0:5.1.6-12.el5
php-snmp.i386 0:5.1.6-12.el5
php-mbstring.i386
php-pdo 5.1.6-12.el5
php-mysql 5.1.6-12.el5
#######################
6.install
snmpnet-snmp.i386
net-snmp-utils.i386
net-snmp-perl.i386
#######################
7.install
mysqlmysql.i386 5.0.22-2.1
#######################
8.install
rrdtool1.0.50-3.el5.rf
rrdtool.i386
perl-rrdtool-1.2.1
php-rrdtool.i386
freetype-2.2.1-17.el5
########################
9.GDphp-gd.i386
gd
#######################
10.cacti cacti 0.8.6j
#######################
setting mysql
11.1 create the Mysql root password /usr/bin/mysqladmin -u root password 'xxxxxxxx'
11.2 Create the MySQL database: mysqladmin -p --user=root create cacti
11.3 Import the default cacti database: cd /var/www/cacti mysql -p cacti < cacti.sql
11.4 Optional: Create a MySQL username and password for Cacti.
mysql -p --user=root mysql GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cacti'; flush privileges;
############################
12.Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
vi /var/www/cacti/include/config.php$database_default = "cacti";$database_hostname = "localhost";$database_username = "cactiuser";$database_password = "cacti";
#############################
13. add user cactiuseruseradd cactiuserchown -R cactiuser rra/ log/chmod -R 755 rra/ log/
###########################
14.Add a line to your /etc/crontab file similar to:
su - cactiuser
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
##############################
add cacti the plugins #1.http://download.cactiusers.org/downloads/cacti-plugin-arch.gzip
tar zxvf cacti-plugin-arch.gzip
cp cacti-plugin-0.8.6j.diff /var/www/html/cacti/
patch -p1 -N < cacti-plugin-0.8.6j.diff
#############################add monitor the plugins
wget http://download.cactiusers.org/downloads/monitor.gzip
tar zxvf monitor-0.7.tar.gzvi /var/www/html/cacti/include/config.php在 $plugins = array(); 字眼下方加入 $plugins[] = 'monitor';
張貼留言