Cacti Configuration In debian
2 Introduction About Cacti
Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
Cacti requires that the following software is installed on your system.
RRDTool 1.0.48 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
Ports for FreeBSD
lang/php4 (With MySQL and SNMP Support)
Cacti Installation in Debian
# apt-get install cacti
( the message about "libphp-adodb isn't longer installed in /usr/lib/adodb. etc." doesn't seem to be valid - so for now, ignore it.)
This will install all the required packages like mysql, rrdtool
Note :- If you want to install latest versions you have to download separately each package
After installation you have to uncomment the following to work php and mysql modules
You need to install apache Webserver click here for apache with php support installation guide
# Cause the PHP interpreter to handle files with a .php extension. AddType application/x-httpd-php .php
For cacti create a new user called cacti using the following command
Create the MySQL database:
shell> mysqladmin --user=root create cacti
Import the default cacti database:
shell> mysql cacti < cacti.sql
Optional: Create a MySQL username and password for Cacti.
shell> 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.
shell> 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:
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.
Download Official Patches For Cacti
Additional scripts For Cacti
Cacti Screen Shots