arrowHome arrow Performance Management arrow Cacti Knowledge Base arrow Cacti Installation guide for Unix/Linux Tuesday, 06 January 2009  
Main Menu
Home
Contact Us
ozMonitor Teams
ozMonitor Terms of Use
Monitoring KB
ITIL
Fault Management
Performance Management
All-in-one Monitoring Tools
Management Skills
Time Management
Delegation
Managing People
Managing Conflict
Project Management
Prince2 Introduction
Prince2 Processes
Prince2 Components
Prince2 Techniques
Cacti Installation guide for Unix/Linux Print E-mail
Extract the distribution tarball.
  • tar xzvf cacti-version.tar.gz
Create the MySQL database:
  • mysqladmin --user=root -p create cacti
Import the default cacti database:
  • mysql cacti < cacti.sql

Create a MySQL username and password for Cacti.
  • mysql --user=root mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';
mysql> flush privileges;

Edit include/config.php and specify the MySQL user, password and database for your Cacti configuration.
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

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/

(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)

Add a line to your /etc/crontab file similar to:
  • */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1


Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
Point your web browser to:  http://your-server/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.

 
< Prev   Next >

© 2009 ozMonitor Knowledge Base