Requirements : Cacti requires that the following software is installed on your system. RRDTool 1.0.49 or 1.2.x or greater MySQL 3.23 or greater, 4.0.20d or greater highly recommended for advanced features PHP 4.1 or greater, 4.3.6 or greater highly recommended for advanced features Packages for RPM-based Operating Systems httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils #Cacti can also be installed using yum #eg. yum install cacti 1> Download RPM cacti. 2> Create the MySQL database: shell> mysqladmin --user=root -p create cacti
3>Import the default cacti database: shell> mysql -u root -p cacti < /var/www/html/cacti/cacti.sql 4> mysql -u root -p GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY '
'; flush privileges; exit 5> cp -a /var/www/html/cacti/include/config.php /var/www/html/cacti/include/config.php.orig
6> 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 = "somepasswd";
7> 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. shell> chown -R cactiuser rra/ log/ 8> Add a line to your /etc/crontab file similar to: */5 * * * * cacti php /var/www/html/cacti/poller.php > /dev/null 2>&1 10> Point your web browser to: http://your-server/cacti/ 11> Patching of cacti.This is not necessary if you have installed cacti uing yum Be sure that you are in your Cacti directory when you execute these commands. wget http://www.cacti.net/downloads/patches/0.8.6h/fix_search_session_clear_issue.patch wget http://www.cacti.net/downloads/patches/0.8.6h/fix_sql_syntax_related_to_default_rr a_id.patch wget http://www.cacti.net/downloads/patches/0.8.6h/nth_percentile_empty_return_set_issu e.patch wget http://www.cacti.net/downloads/patches/0.8.6h/mysql_5x_strict.patch wget http://www.cacti.net/downloads/patches/0.8.6h/database_autoincrement_corruption.pa tch patch -p1 -N < fix_search_session_clear_issue.patch patch -p1 -N < fix_sql_syntax_related_to_default_rra_id.patch patch -p1 -N < nth_percentile_empty_return_set_issue.patch patch -p1 -N < mysql_5x_strict.patch patch -p1 -N < database_autoincrement_corruption.patch