下载 mrtg包
下载:http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.1.tar.gz
tar-zxvf mrtg-2.15.1.tar.gz
cd mrtg-2.15.1
./configure--prefix=/usr/local/mrtg
make && make install
本机为Linux 204为2003
为2003安装SNMP
找到SNMP服务 安全团队名 kannimei
接收来自 192.168.0.210 的数据包
-------------------------------
安装apache
cd /usr/local/mrtg/bin
yum -y install httpd
service httpd on
service httpd start
/usr/local/mrtg/bin/cfgmaker --global 'WorkDir:/var/www/html' --output=/usr/local/mrtg/mrtg.cfg kannimei@192.168.0.204
vi mrtg.cfg
/usr/local/mrtg/bin/indexmaker /usr/local/mrtg/mrtg.cfg --output=/var/www/html/index.html --title="mrtg"
env
LANG=C
/usr/local/mrtg/bin/mrtg /usr/local/mrtg/mrtg.cfg
添加计划任务
crontab -e
每分钟执行一次
* * * * * /usr/local/mrtg/bin/mrtg /usr/local/mrtg/mrtg.cfg