Cacti
I want to use it to display bandwidth statistics for my customers.
Install http, php, and mysql
I had installed Fedora 14 as LAMP on my server, so Idon’t need to install them.
# yum -y install httpd php mysql mysql-server php-mysql
Install cacti package
# yum install cacti
Create database cacti
# mysql-uroot -p
mysql> create database cacti;
mysql> grant all on cacti.* to root;
mysql> grant all on cacti.* to root@localhost;
mysql> quit
Import cacti.sql to mysql# mysql -uroot -p123456 cacti < /usr/share/doc/cacti-0.8.7g/cacti.sql
Modify the Configuration files
# vi /etc/cacti/db.php
Then edit and types like below$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “root”;
$database_password = “123456”;
# vi /etc/httpd/conf.d/cacti.confcomment on “Deny from all”, and change “Allow from 127.0.0.1″ to “Allow from all”
Restart service httpd
# service httpd restart
Configuration via browser
Open anyweb browser (only whit cinfigure cacti), input http://xxx.xxx.xxx.xxx/cacti
In the fisrth srceen Click “Next”
Click “Next” Again
All files says: [FOUND]Click “Finish”
Input the default user name (admin) and password (admin), and then click “Login”
Input the new password you will use
Then I can enjoy the cacti
Regístrate para leer el documento completo.