Home > Old Post dari Unilanet > Bandwdith Monitoring using CACTI on FreeBSD

Bandwdith Monitoring using CACTI on FreeBSD


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.
  1. shell> tar xzvf cacti-version.tar.gz 
  2. Create the MySQL database:
    shell> mysqladmin --user=root create cacti 
    
  3. Copy cacti to your htmldata  shell> cp -rv cacti-version /usr/local/www/apache22/data/
  4. Go To Your cacti folder shell> cd  /usr/local/www/apache22/data/
  5. Import the default cacti database:
    shell> mysql cacti < cacti.sql 
  6. 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; 
  7. 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"; 
  8. 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.)

  9. 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.

     

  10. Point your web browser to:

    http://your-server/cacti-version/

  11. 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.
  12. Doneeeeee
  13. Contoh  aplikasi yang udah gw jalanain  http://noc.unila.ac.id/cacti/netmon.php
  14. Please Leave A Comment If You are still confuse......  CheerrrCool Cool
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: