Monitoring Enterprise Network using Cacti on RedHat 8.0

I was asked to analyze performance of an ERP working over Internet via OpenVPN. It works very well on local area network. However, it is pretty slow for remote access via VPN. The server is placed behide an ADSL router connected at 1024/512 and other endpoint are connected to another ADSL router connected at 512/256. Since there are many clients, I don’t sure what the bottleneck is. There are 2 possible points.

  1. ADSL router at server side may congest due to traffic in local network
  2. Too many data transfer in such transaction from ERP itself

I would like to monitor enterprise network to figure out the bottleneck. I choose Cacti because it is easy to install and very customizable. The machine I have is just RedHat 8.0. I know it’s kind of old one but it works. I will upgrade it someday. Below is my step to install Cacti 0.8.5.

  1. Download Cacti 0.8.5, rrdtool 1.0.49, and php-rrdtool 1.0.49.
  2. Install them all
    rpm -ivh cacti-0.8.5-2.a.0.rh8.dag.i386.rpm rrdtool-1.0.49-1.0.rh8.dag.i386.rpm php-rrdtool-1.0.49-1.0.rh8.dag.i386.rpm
  3. Create a database in MySQL using mysql_setpermission
  4. Modify /etc/cactid.conf according to the database created
  5. Modify /var/www/cacti/include/config.php according to the correct settings
  6. Initialize database with /var/www/cacti/cacti.sql
    mysql -u cacti -p cacti < /var/www/cacti/cacti.sql
  7. Restart httpd service
    service httpd restart

If you get some error messages like below, it means you have too old PHP. This version is buggy. You have to upgrade to at least 4.2.2-8.0.8.

Now you should be able to access to the Cacti at http://localhost/cacti/ and follow below steps to complete installation.

  1. Click Next
  2. Choose New Install and click Next
  3. Verify that all tools are found and click Next
  4. Log in with user admin and password admin
  5. Specify new admin’s password

By default, you will have localhost and its 4 graphs. I will continue to add a router and its graphs.

  1. Click Management / Devices
  2. Click Add at the top right corner
  3. Specify description and name. Change Host Template to Cisco Router no matter what you have.
  4. Remove Cisco - CPU Usage in Associated Graph Templates
  5. Click New Graph
  6. Choose the router, check the interface you want to monitor, change graph type to In/Out Bits with Total Bandwidth and click Create
  7. Click Graph Trees
  8. Click Add at the top right corner
  9. Change Tree Item Type to Host and choose your router in Host field and then click Create

That’s all! Wait for 5 minutes and you should see new graphs.

Technorati Tags: , , , , , , , , , , , ,

Post new comment