CACTI network traffic monitoring tool (1)

Source: Internet
Author: User

CactiIs a network developed based on PHP, MySQL, SNMP, and RRDTool.Traffic MonitoringGraphic analysis tools. Who knows who to use!

Description:

Introducing a very useful traffic control tool, CACTI, is easier than MRTG to manage traffic control groups. This set of system resources is very heavy, therefore, we recommend that you have excellent hardware configurations. Official Website: http://www.cacti.net, my Ann said it is the official phone of the test: http://www.cacti.net/downloads/docs/html/

Environment:

Hardware: i386 PC, Intel P3 500

Memory card: 256 m ram + one network card

Business System: FreeBSD 5.3 Release

Installing CACTI-Installing CACTI:

Security considerations for FreeBSD requirements:

 
 
  1. #/Usr/ports/database/mysql41-server
  2.  
  3. # Make install
  4.  
  5. #/Usr/ports/net-mgmt/net-snmp4
  6.  
  7. # Make install
  8.  
  9. #/Usr/ports/net/rrdtool
  10.  
  11. # Make install
  12.  
  13. #/Usr/ports/www/apache2
  14.  
  15. # Make install
  16.  
  17. #/Usr/ports/lang/php4 # installed php4 already included (Apache Module and CLI)
  18.  
  19. # Make install
  20.  
  21. #/Usr/ports/lang/php4-extensions # select your desired php suite
  22.  
  23. # Make install
  24.  

Start of the anqishi cacti suite:

# Tar xzvf cacti-version.tar.gz # the latest package for removing heavy cacti

# Mysqladmin -- user = root create cacti # compile a cacti Resource

# Mysql-p cacti <cacti. SQL # import the cacti data table created by cacti TO THE created cacti data table.

# Mysql-u root-pxxxxx # Use root to input mysql

Mysql> grant all on cacti. * TO cactiuser @ localhost identified by 'somepassword'; # create the user metadata and password of the cacti resource.

Query OK, 0 rows affected (0.07 sec)

Mysql> flush privileges; # update the resource to make the changes take effect.

Query OK, 0 rows affected (0.05 sec)

Mysql> exit # Jump out of mysql

Bye

# Vi/usr/local/www/data-dist/cacti/include/config. php # cacti config settings

$ Database_default = "cacti ";

$ Database_hostname = "localhost ";

$ Database_username = "cactiuser ";

$ Database_password = "somepassword ";

# Pw adduser cactiuser # create cactiuser

# Passwd cactiuser

Changing local password for cactiuser

New Password: xxxx

Retype New Password: xxxx

# Chown-R cactiuser rra/log/# modify the permission limits of rra and log so that cactiuser becomes invalid

# Crontab-e # create a crontab to run the cacti traffic quota once every five minutes

*/5 */usr/local/bin/php/usr/local/www/data-dist/cacti/poller. php>/dev/null 2> & 1

# Php poller. php # You can also manually run cacti once.

Finally, set http: // your-server/cacti/

Start a browser to configure your cacti category, and log on to the server for the first time. The first access password is admin/admin, before logon, the system requires you to change the password of the new logon admin user.

Upgrade CACTI-Upgrading CACTI:

# Cd/usr/local/www/data-dist # Switch the source object to the source object of www.

# Mysqldump-l -- add-drop-table cacti> mysql. cacti # extract the cacti information of mysql

# Mv cacti cacti_old # change the cacti category of the variable to cacti_old category

# Tar-xzvf cacti-new-version.tar.gz # capture the new version of cacti placement/usr/local/www/data-dist and unlock the kernel

# Mv cacti-new-version cacti # change the name of the new version to cacti

# Vi include/config. php # configure the latest version of config. php plugin

$ Database_default = "cacti ";

$ Database_hostname = "localhost ";

$ Database_username = "cactiuser ";

$ Database_password = "xxxxx ";

# Cp cacti_old/rra/* cacti/rra/# copy expected new version

# Cp cacti_old/scripts/* cacti/scripts/# copy your scripts to the new resource catalog

# Chown-R cactiuser rra/log/# modify the permission limit for two objects in rra log

Http: // your-server/cacti/# open a browser and enter the cacti object to complete the upgrade.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.