Friday, July 31, 2009

Monitoring Bandwidth with Cacti

CACTI ScreenShoot



For network administrators, Of course needs bandwidth monitoring, like traffic and server.Beside MRTG, there many administrator use CACTI as solution to make perfect graph monitoring which use RRDTool as graph maker and collection data.For complete Documentation about cacti fiturs, see the website on http://www.cacti.net.

I'll try to share about CACTI installation on FreeBSD. Before do that make sure Web Server, PHP, Mysql, dan SNMP is completly running on our machine. Don't forget to install RRDTool on our machine too.

Install RRDTool via port.
bagoes # cd /usr/ports/net/rrdtool
bagoes # make install clean


Wait until installation complete

1. Download CACTI
download from : http://www.cacti.net/download_cacti.php, download newest.

2. Ekstrak CACTI
Put in direktori /home/bagoes
bagoes # cd /home/bagoes
bagoes # tar -xzvf cacti-0.8.7b.tar.gz

3. Move to webserver directory
bagoes # mv cacti-0.8.7b cacti
bagoes # mv cacti /usr/local/dataweb/www/.

4. Edit File conf
bagoes# cd /usr/local/dataweb/www/cacti
bagoes# cd include/

fit this file with configuration on your system
- file config.php
- file global.php

Edit this lines :
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “user_kita”;
$database_password = “pass_word”;
$database_port = “3306″;

5. Create database on Mysql
ns-rody# mysql -u myuser -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2195 to server version: 5.1.11-beta

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye

6. Import mysql database
bagoes # cd /usr/local/dataweb/www/cacti
bagoes # mysql –u user_kita –p < cacti.sql

7. Execute poller.php every 5 minute on crentab
bagoes # vi /etc/contab

add this line:
*/5 * * * * root /usr/local/bin/php /usr/local/dataweb/www/cacti/poller.php > /dev/null 2>&1

8. Open CACTI on web browser
Example my FreeBSD IP 192.168.1.2, just access from client: http://192.168.1.2/cacti



User Login

Referensi:

http://www.technorody.com/install-cacti-network-graphing-solution.rody

http://en.wikipedia.org/wiki/Cacti_(software)

No comments:

Post a Comment