安装
一、
tar zxvf rrdtool-1.4.5.tar.gz
cd rrdtool-1.4.5
./configure --prefix=/usr/local
make && make install
二、编辑snmpd
vim /etc/snmp/snmpd.conf 可以将原来的snmpd.conf 备份
修改snmp的配置文件,
修改/etc/snmp/snmpd.conf ------清空文件,
加上一句
rocommunity public 这是默认的协议和密码
主要是被监控机上需要编辑这个文件 二、编辑snmpd
vim /etc/snmp/snmpd.conf
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view all included .1
access notConfigGroup "" any noauth exact all none none 启动服务 /etc/init.d/httpd restart
chkconfig httpd on
mysql -u root -p create database cactidb default character set utf8;
grant all on cactidb.* to cactiuser@localhost identified by '123';
cd /var/www/html/
mysql -u cactiuser -p cactidb < /cacti/cacti.sql
安装和配置apache状态监控server-status 1、要了解apache的性能,我们需要使用apache server status的模块来详细的了解apache工作的怎么样,并可以使用cacti
2、apache的状态管理模块
vim /etc/httpd/conf/httpd.conf
LoadModule status_module modules/mod_status.so 默认的都已经开启
3、对apache server status 的启用
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
ExtendedStatus On 访问接口:http://IP/server-status
cacti通过server——status监控apache