Cacti: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
chown -R cactiuser rra/ log/ | chown -R cactiuser rra/ log/ | ||
* | * Create ''/www/cacti-0.8.7d/cron'' subdirectory and ''cronjob'' file inside with following contents: | ||
*/5 * * * * cactiuser php /www/cacti/poller.php > /dev/null 2>& | */5 * * * * cactiuser php /www/cacti-0.8.7d/poller.php > /dev/null 2>&1 | ||
Login as ''cactiuser', go to that directory and start cron job: | |||
crontab cronjob | |||
Check that it is running: | |||
crontab -l | |||
* Point your web browser to http://clonweb/cacti/. | * Point your web browser to http://clonweb/cacti/. | ||
* Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen. | * Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen. |
Revision as of 12:05, 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 -h clondb1 -u root -p create cacti Import the default cacti database: mysql -h clondb1 -u root -p cacti < cacti.sql Create a MySQL username and password for Cacti: mysql -h clondb1 -u root -p mysql mysql> GRANT ALL ON cacti.* TO cactiuser@clonweb IDENTIFIED BY 'cloncacti'; mysql> flush privileges; mysql> exit; 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 = "clondb1"; $database_username = "cactiuser"; $database_password = "cloncacti";
- create user 'cactiuser' with private group 'cactiuser'
- Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions:
chown -R cactiuser rra/ log/
- Create /www/cacti-0.8.7d/cron subdirectory and cronjob file inside with following contents:
*/5 * * * * cactiuser php /www/cacti-0.8.7d/poller.php > /dev/null 2>&1
Login as cactiuser', go to that directory and start cron job:
crontab cronjob
Check that it is running:
crontab -l
- Point your web browser to http://clonweb/cacti/.
- Log in the with a username/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.