Sekelumit tentang pengalaman pribadi ketika meng-install cacti di mesin FreeBSD 6.2 Stable, mudah-mudahan catatan kecil ini bisa bermanfaat .
- Admin_Katro# cd /usr/ports/databases/mysql50-server
Admin_Katro# make && make install clean
Admin_Katro# cd /usr/ports/net-mgmt/net-snmp4
Admin_Katro# make && make install clean
Admin_Katro# cd /usr/ports/net/rrdtool
Admin_Katro# make && make install clean
Admin_Katro# cd /usr/ports/www/apache22
Admin_Katro# make && make install clean
Admin_Katro# cd /usr/ports/lang/php4
Admin_Katro# make && make install clean
Admin_Katro# cd /usr/ports/lang/php4-extensions
Admin_Katro# make && make install clean - Get The last version of cacti wget http://cacti.net/ Extract the distribution tarball.
-
shell> tar xzvf cacti-version.tar.gz
- Create the MySQL database:
shell> mysqladmin --user=root create cacti
-
Copy cacti to your htmldata shell> cp -rv cacti-version /usr/local/www/apache22/data/
-
Go To Your cacti folder shell> cd /usr/local/www/apache22/data/
- Import the default cacti database:
shell> mysql cacti < cacti.sql
- Optional: Create a MySQL username and password for Cacti.
shell> mysql --user=root mysql mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; mysql> flush privileges;
- Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
$database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cacti";
- Set the appropriate permissions on cacti’s directories for graph/log generation. You should execute these commands from inside cacti’s directory to change the permissions.
shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)
- Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /usr/local/www/apache22/data/cacti-version/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
- Point your web browser to:
http://your-server/cacti-version/
- Jangan lupa disalah satu langkah install cacti nanti ada opsi untuk mengecek apakah semua “path binary” dah sesuai atau belum (dah ditemukan atau belum), jika masih ada yg belum ditemukan (”not found”) silahkan periksa kembali instalasi Anda, mungkin ada step yang terlewatkan, jika semua path binary dah ditemukan (”found”) silahkan teruskan instalasi hingga finish. Jika instalasi berhasil maka akan muncul form login cacti, untuk pertama kali, silahkan Anda login dengan username = admin dan password = admin, setelah itu cacti akan meminta Anda mengubah password Anda.Setelah Anda berhasil login, langakah selanjutnya adalah meng-edit configuration cacti agar menampilkan grafik seperti yang Anda inginkan.
-
Doneeeeee
-
Contoh aplikasi yang udah gw jalanain http://noc.unila.ac.id/cacti/netmon.php
-
Please Leave A Comment If You are still confuse...... Cheerrr
