Thursday, January 18, 2007
Instalasi Cacti Menggunakan Fedora Core 3
Semoga dapat bermanfaat bagi rekan-rekan yang membutuhkan referensi dalam memonitoring Network.
1. Install Apache (httpd), PHP, MySQL (server and client).
yum -y install httpd php mysql mysql-server php-mysql
2. Configure the new services untuk start secara otomatis
/sbin/chkconfig httpd on
/sbin/chkconfig --add mysqld
/sbin/chkconfig mysqld on
/sbin/service httpd start
/sbin/service mysqld start
3. mysqladmin -u root password 'new-password'
4. mysql -u root -p
mysql> DROP DATABASE test; [removes the test database]
mysql> DELETE FROM mysql.user WHERE user = ''; [Removes anonymous access]
mysql> FLUSH PRIVILEGES;
5. Test PHP
Create a test PHP script (such as phpinfo.php) and place it in the document root. A useful test script sample:
phpinfo();
?>
Install gd library
rpm -ivh gd-2.0.28-1.30.1.i386.rpm
rpm -ivh gd-devel-2.0.28-1.30.1.i386.rpm
Install libpng
rpm -ivh libpng-1.2.8-1.fc3.i386.rpm
rpm -ivh libpng-devel-1.2.8-1.fc3.i386.rpm
Install NETSNMP
rpm -ivh net-snmp-5.2.1.2-FC3.1.i386.rpm
rpm -ivh net-snmp-devel-5.2.1.2-FC3.1.i386.rpm
rpm -ivh net-snmp-libs-5.2.1.2-FC3.1.i386.rpm
rpm -ivh net-snmp-perl-5.2.1.2-FC3.1.i386.rpm
rpm -ivh net-snmp-utils-5.2.1.2-FC3.1.i386.rpm
Install RRDTools
rpm -ivh rrdtool-1.2.13-1.fc3.rf.i386.rpm rrdtool-devel-1.2.13-1.fc3.rf.x86_64.rpm perl-rrdtool-1.2.13-1.fc3.rf.i386.rpm
Install python
rpm -ivh python-rrdtool-1.2.13-1.fc3.rf.i386.rpm
Install php-snmp
rpm -ivh php-snmp-4.3.11-2.8.i386.rpm
Install Cacti
rpm -ivh cacti-0.8.6h.fc3.i386.rpm
Install Cactid
rpm -ivh cacti-cactid-0.8.6g.fc3.i386.rpm
lalu edit file /etc/cacti.conf
DB_Host localhost
DB_Database cacti
DB_User root
DB_Pass cumigondrong
DB_Port 3306
edit crontab /etc/cron.d/cacti
*/5 * * * * root php /var/www/html/cacti/poller.php > /dev/null 2>&1
Aktifkan snmp
/etc/init.d/snmpd start
snmpwalk -c public -v 1 localhost
Aktifkan CACTI
adduser cacti
groupadd cacti
cd /var/www/html/cacti/
Buat database cacti
mysqladmin -u root -p create cacti
mysql -u root -p cacti < cacti.sql
mysql -u root -p
GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'password';
flush privileges;
exit
edit file file di /var/www/html/cacti/ include/config.php
vi include/config.php
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$databse_password = "cumigondrong";
sudo chown -R cacti:cacti /var/www/html/cacti/{rra,log}
Buat crontab
sudo crontab -e -u cacti
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
edit file di /etc/cacti.conf
untuk test akses ke http://localhost/cacti/
Mommo
081389539797
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment