一、软件包

a) cacti-0.8.7g.tar.gz

b) net-snmp-5.2.6.tar.gz

c) rrdtool-1.4.5.tar.gz

二、安装步骤

a) 首先安装配置好LAMP环境

b) Tar zxvf rrdtool-1.4.5.tar.gz

c) ./configure --prefix=/usr/local/rrdtool --disable-tcl

d) ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

e) 执行rrdtool看是否安装正确

f) Tar zxvf net-snmp-5.2.6.tar.gz

g) ./configure --prefix=/usr/local/net-snmp --enable-developer

h) ln -s /usr/local/net-snmp/bin/* /usr/local/bin

i) cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf

j) /usr/local/net-snmp/sbin/snmpd //启动snmpd

k) Tar zxvf cacti-0.8.7g.tar.gz

l) Mv cacti-0.8.7g /usr/local/apache/htdocs/cacti

m) vi /usr/local/apache/htdocs/cacti/include/config.php

n) vi /usr/local/apache/htdocs/cacti/include/global.php

$database_type = "mysql";

$database_default = "cacti";

$database_hostname = "localhost";

$database_username = "cacti";

$database_password = "cacti";

o) useradd cacti

p) groupadd cacti

q) chown –R cacti:cacti /usr/local/apache/htdocs/cacti/rra

r) chown –R cacti:cacti /usr/local/apache/htdocs/cacti

s) /usr/local/mysql/bin/mysql –uroot –p

t) Mysql>create database cacti;

u) Mysql> grant all on cacti.* to cacti@localhost identified by “cacti”;

v) Mysql>flush privileges;

w) Cd /usr/local/apache/htdocs/cacti

x) /usr/local/mysql/bin/mysql –uroot –p cacti >cacti.sql;

y) 访问http://localhost/cacti默认用户名admin.密码admin

Redhat Cacti安装配置_Redhat