Cacti Install: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Prerequisites = | = Prerequisites = | ||
First of all download install the pre requisite rrdtool. | First of all download install the pre requisite rrdtool. | ||
<pre> | <pre> | ||
yum -y install gcc gcc-c++ make wget rrdtool | |||
</pre> | </pre> | ||
Line 10: | Line 9: | ||
<pre> | <pre> | ||
yum -y install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils | yum -y install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils | ||
<pre> | </pre> | ||
Start and set to auto start on boot. | Start and set to auto start on boot. | ||
Line 20: | Line 19: | ||
service httpd start | service httpd start | ||
</pre> | </pre> | ||
= Cacti = | = Cacti = | ||
Download and install Cacti | Download and install Cacti | ||
<pre> | <pre> | ||
wget http://www.cacti.net/downloads/cacti-0.8. | wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz | ||
tar xzvf cacti-0.8. | tar xzvf cacti-0.8.8a.tar.gz | ||
rm -f cacti-0.8. | rm -f cacti-0.8.8a.tar.gz | ||
mv cacti-0.8. | mv cacti-0.8.8a /var/www/html/cacti | ||
</pre> | </pre> | ||
Latest revision as of 01:19, 7 December 2012
Prerequisites
First of all download install the pre requisite rrdtool.
yum -y install gcc gcc-c++ make wget rrdtool
Install further Linux required applications.
yum -y install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils
Start and set to auto start on boot.
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.8a.tar.gz tar xzvf cacti-0.8.8a.tar.gz rm -f cacti-0.8.8a.tar.gz mv cacti-0.8.8a /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 |
cron job
Add the following line to cron
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
snmp client
Install SNMP client tools for linux.
yum install net-snmp net-snmp-utils chkconfig snmpd on service snmpd start