Cacti: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
Allow from all | Allow from all | ||
</Directory> | </Directory> | ||
* configure mysql: | |||
Create database: | |||
mysqladmin --user=root create cacti | |||
Import the default cacti database: | |||
mysql cacti < cacti.sql | |||
Create a MySQL username and password for Cacti: | |||
mysql --user=root mysql | |||
GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; | |||
flush privileges; | |||
Edit include/config.php and specify the database type, | |||
name, host, user and password for your Cacti configuration: | |||
$database_type = "mysql"; | |||
$database_default = "cacti"; | |||
$database_hostname = "localhost"; | |||
$database_username = "cactiuser"; | |||
$database_password = "cacti"; |
Revision as of 11:20, 24 February 2009
Cacti requires MySQL, PHP, RRDTool, net-snmp, and a webserver that supports PHP such as Apache.
- untar cacti tarball in /www creating directory
/www/cacti-0.8.7d
- add following to the Apache httpd.conf:
###sergey: for CACTI Alias /cacti "/www/cacti-0.8.7d/" <Directory "/www/cacti-0.8.7d/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
- configure mysql:
Create database: mysqladmin --user=root create cacti Import the default cacti database: mysql cacti < cacti.sql Create a MySQL username and password for Cacti: mysql --user=root mysql GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; flush privileges; Edit include/config.php and specify the database type, name, host, user and password for your Cacti configuration: $database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cactiuser"; $database_password = "cacti";