Cacti requires MySQL, PHP, RRDTool, net-snmp, and a webserver that supports PHP such as Apache.
At first, install snmp for linux
wget http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz
tar zxvf cacti-0.8.7b.tar.gz
mv cacti-0.8.7b /home/netkiller/public_html/cacti
mysqladmin --user=root create cacti
mysql -uroot -p cacti < cacti.sql
echo "GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';" | mysql -uroot -p
echo "flush privileges;" | mysql -uroot -p
vi include/config.php
例 19.1. cacti config.php
crontab -e
*/5 * * * * php /var/www/neo.6600.org/html/cacti/poller.php > /dev/null 2>&1
or
/etc/crontab
*/5 * * * * nobody php /home/netkiller/public_html/cacti/poller.php > /dev/null 2>&1
mkdir -p /var/log/cacti/
configure cacti
http://your-server/cacti/
原文出處:Netkiller 系列 手劄
本文作者:陳景峯
轉載請與作者聯系,同時請務必标明文章原始出處和作者資訊及本聲明。