A Story About…

Just an Ordinary Person

Install Cacti (software monitoring)

Cacti adalah salah satu software untuk monitoring server

Requirement:

  1. Apache (/usr/ports/www/apache22/)
  2. mysql (/usr/ports/databases/mysqlxx-server/)
  3. php5 (/usr/ports/lang/php5/)
  4. php5-ekstension (/usr/ports/lang/php5-extensions/)
  5. snmp (/usr/ports/net-mgmt/net-snmp/)
  6. rrdtool (/usr/ports/databases/rrdtool/)

Yups, sekarang install cacti

#cd /usr/ports/net-mgmt/cacti/
#make config
#make install && make clean

Next step:

  • import database cacti melalui phpmyadmin atau bikin database cacti masukin querry SQL-nya (copi paste)
  • bikin user untuk cacti, beri privillege penuh untuk database cacti
  • edit file config.php di directory /usr/local/share/cacti/include/
    isi database_default dengan nama database (dalam hal ini namanya cacti), database_user dengan user yang mempunyai privilege penuh tadi, databas_password dengan password user tadi
  • Tambahkan baris berikut di file crontab yang terletak pada directory /etc/
    */5 * * * * cacti /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1
  • Bikin Alias untuk cacti pada httpd.conf
    Alias /monitoring “/usr/local/share/cacti/”
  • Restart apache
  • buka http://alamatsitusanda.com/monitoring/

Selesai…..

February 24, 2008 - Posted by | Ngoprek

No comments 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: