4. Install rrd
RRDtool http://oss.oetiker.ch/rrdtool/ Official Website
# Tar-zxvf rrdtool-1.2.27.tar.gz Decompression
#./Configure -- prefix =/usr/local/pre-compilation Configuration
# Make & make install compile and install
------------------------------------------ RRDtool has been installed ------------------------------------------------------
<! -- [If! SupportLists] --> 5. <! -- [Endif] --> install Cacti
Cacti: http://www.cacti.net/
Cacti installation:
# Tar-zxvf cacti-0.8.7i.tar.gz Decompression
# Mv cacti-0.8.7i/usr/local/apache/htdocs/cacti move under the website root directory and rename
# Useradd cactiuser
# Chown-R cactiuser. cactiuser/usr/local/apache/htdocs/cacti/rra/usr/local/apache/htdocs/cacti/log set the owner Group
# Mysql-u root access to the database
Mysql> create database cactidb default character set utf8; create a cactidb database
Mysql> grant all on cactidb. * to cactiuser @ localhost identified by '20140901'; Set permissions
# Mysql-u cactiuser-p cactidb <cacti. SQL imports data into the database (in the cacti compressed package)
# Vi include/config. php debug System Configuration File
$ Database_type = "mysql ";
$ Database_default = "cactidb ";
$ Database_hostname = "localhost ";
$ Database_username = "cactiuser ";
$ Database_password = "1234 ";
$ Database_port = "3306 ";
$ Database_ssl = false;
$ Config ['url _ path'] = "/";
# Vi/usr/local/apache/conf/httpd. conf adjust the apache service
Listen 80
DocumentRoot "/usr/local/apache/htdocs/cacti"
<Directory/usr/local/apache/htdocs>
Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index. php
</IfModule>
-------------------------------------------------- Cacti installation completed -----------------------------------------------------
Cacti debugging:
Input address:
<! -- [Endif] -->
Next step
<! -- [Endif] -->
New Installation
<! -- [Endif] -->
The error section is red. You need to install the snmp service.
# Yum install net-snmp *
<! -- [Endif] -->
Click Finish
Sat.
Display Interface
On the first logon page, you must change the password. The default password is admin.
<! -- [Endif] -->
Change Password
<! -- [Endif] -->
Initial Interface
<! -- [Endif] -->
------------------------------------------------- All completed
This article is from the blog "flying birds with wings"