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:
- #/Usr/ports/database/mysql41-server
-
- # Make install
-
- #/Usr/ports/net-mgmt/net-snmp4
-
- # Make install
-
- #/Usr/ports/net/rrdtool
-
- # Make install
-
- #/Usr/ports/www/apache2
-
- # Make install
-
- #/Usr/ports/lang/php4 # installed php4 already included (Apache Module and CLI)
-
- # Make install
-
- #/Usr/ports/lang/php4-extensions # select your desired php suite
-
- # Make install
-
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.