Cacti
部署服务器运行环境 (LAMP)
yum -y install httpd php mysql-server
打开服务并且设置开机自启
进入mysql
mysql> create database cactidb;
mysql> grant all on cactidb.* to pli@”localhost” identified by ‘westos’;
安装cacti
tar -zxf cacti-0.8.8h.tar.gz -C /var/www/html/
cd /var/www/html/
mv cacti-0.8.8h/ cacti
chmod -R 777 cacti
mysql -uplj -p123456 cactidb < /var/www/html/cacti/cacti.sql
mysql -upli -p123456 cactidb
RRDTool 绘图工具
yum -y install rrdtool
snmp 简单网络管理协议
yum -y install net-snmp*
访问 172.25.10.5/cacti
用户名 admim
初始密码 admim
(首次登录强制修改登录密码)
安装高速采集器
yum -y install mysql-devel
cd cacti-spine-0.8.8h/
./configure –with-mysql
Make
make install
cp /usr/local/spine/bin/spine /usr/bin/
cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf
vim /etc/spine.conf
33 DB_Host localhost
34 DB_Database cactidb
35 DB_User pli
36 DB_Pass westos
37 DB_Port 3306
配置
监控本机
vim /etc/snmp/snmpd.conf
41 com2sec notConfigUser 127.0.0.1 public
62 access notConfigGroup “” any noauth exact all none
85 view all included .1 80
/etc/init. d/snmpd
Chkcon snmpd on