Cacti Install

From KlavoWiki
Revision as of 09:22, 19 December 2009 by David (talk | contribs) (Created page with '= Prerequisites = First of all download install the pre requisite rrdtool. <pre> cd /usr/src wget http://dag.wieers.com/rpm/packages/rrdtool/rrdtool-1.0.50-3.el5.rf.i386.rpm rpm …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Prerequisites

First of all download install the pre requisite rrdtool.

cd /usr/src
wget http://dag.wieers.com/rpm/packages/rrdtool/rrdtool-1.0.50-3.el5.rf.i386.rpm
rpm -i rrdtool-1.0.50-3.el5.rf.i386.rpm

Install further Linux required applications.

yum -y install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils
<pre>

Start and set to auto start on boot.
<pre>
chkconfig mysqld on
chkconfig httpd on

service mysqld start
service httpd start


Cacti

Download and install Cacti

wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
tar xzvf cacti-0.8.7e.tar.gz
rm -f cacti-0.8.7e.tar.gz

mv cacti-0.8.7e /var/www/html/cacti

Configure mysql

cd /var/www/html/cacti
mysqladmin --user=root create cacti
mysql cacti < cacti.sql

mysql
use cacti


GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'password';
flush privileges;
quit


Edit the file 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 = "somepassword";


Accessing Cacti

From a web browser type in your servers IP address

http://ipaddress/cacti

Username and Passwrod for Cacti

The default username and password is admin

username admin
password admin