Cacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development.
Recently in the company to build cacti system, for monitoring the company's project dozens of machine network card traffic, to reach a lot of articles on the net, and finally all plume undercover and return, the article on the internet is largely ignored a problem, is the PHP plugin problem, finally adopted the Yum environment, installation success, Let's share the process.
A. Preparation of the environment
I was in Redhat 6.5 build success, the installation of this article is based on the network Yum source, I use 163 mirror.yum source \
Below is my yum source configuration file, to recommend the use of 163 of the Yum source, the package is very complete, before the company in the Malaysian project environment, I am using 163 of the Yum Source, successfully built the environment, very useful.
[Mirrors]
Name=centos
baseurl=http://mirrors.163.com/centos/6/os/x86_64/
Gpgcheck=0
Enabled=1
B. Inventory of tools to be installed in the cacti environment
1.RRDTOOL:CACTI Tools for drawing
2.mysql-server
3.NET-SNMP Net-snmp-libs Net-snmp-untis
4.php php-mysql php-xml Php-snmp php-gd
Install with Yum in turn.
C. Configuring NET-SNMP
Modify in Vim/etc/snmp/snmpd.conf
View SystemView included. 1.3.6.1.2.1.1
For
View SystemView included. 1.3.6.1.2.1
Restart the SNMPD service when you are finished modifying
/ETC/INIT.D/SNMPD restart
Testing SNMP
Snmpwalk-v 2c-c public localhost. 1.3.1.6.1.1.1.0
snmpv2-mib::sysdescr.0 = string:linux localhost 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 22:19:54 EST x86_64
The information on the system is OK.
D. Installing cacti
Tar zxvf cacti-0.8.8b.tar.gz
After extracting, move to Apache's website under the directory Yum installed under/var/www/html/
MV cacti-0.8.8b/var/www/html/cacti/
Create a database,
Mysql-u root-p
>create databases cacti;
>use cacti
Import Database
>soure/var/www/html/cacti/cacti.sql
Create a database user
>grant all on cacti.* to [e-mail protected] identified by ' cacti123 ';
>flush Privileges
Configure include/config.php
$database _default = "cacti";
$database _hostname = "localhost";
$database _username = "Cactiuser";
$database _password = "cacti123";
$database _port = "3306";
Create a cacti user
Useradd Cactiuser
Chown-r Cactiuser rra/log/
Configure Scheduled Tasks
Crontab-e
*/5 * * * * php/var/www/html/cacti/poller.php >/dev/null 2>&1
/etc/init.d/crond restart
/ETC/INIT.D/HTTPD restart
Turn off SELinux.
Temporarily closed Setenfoce 0
Permanently close Vim/etc/selinux/config
Selinux=disabled
E. Complete cacti installation and enter cacti
Visit http://ip....../cacti/
Default account/Password
Admin/admin
Enter the initialization interface ^.^
OK finish
This article is from the "Tianshu Unruly" blog, please be sure to keep this source http://xiaofeibuji.blog.51cto.com/10022537/1633121
Tough, happy. Installation and configuration of the cacti of----of Yun-dimensional road (i)