Detailed description of Cacti installation and configuration

Source: Internet
Author: User
Tags cairo rrd rrdtool snmp http

1. Introduction to Cacti

Cacti uses snmpget to obtain data and uses RRDtool to draw images. In addition, you do not need to understand the complex parameters of RRDtool. It provides powerful data and user management functions, allowing each user to view the tree structure, host, and any graph, and perform user verification with LDAP, you can also add templates by yourself, which are very powerful and complete. User-friendly. The development of the software Cacti is based on making it easier for RRDTool users to use the software. In addition to the basic Snmp traffic and system information monitoring, cacti can also plug-in Scripts and add Templates to make a variety of monitoring charts.

Cacti is a software implemented in php. Its main function is to use the snmp service to obtain data and then use rrdtool to store and update data, when you need to view data, use rrdtool to generate charts and present them to users. Therefore, snmp and rrdtool are the key to cacti. Snmp is related to data collection, and rrdtool is related to data storage and chart generation.

Mysql works with PHP programs to store some variable data and call the variable data, such as the host name, Host ip address, snmp group name, port number, template information, and other variables.

The data captured by snmp is not stored in mysql, but in the rrd file generated by rrdtool (in the rra folder of the cacti root directory ). Rrdtool updates and stores data as rrd files, and rrd files as Round Robin Archive files ), the number of data records it can store has been defined at the time of creation. For more information about RRDTool, see RRDTool.

2. structure diagram:

In RHEL6.4, the Cacti + Spine monitoring host is used to send mail alarms.

Use Cacti + Spine to monitor remote hosts in RHEL6.4

CentOS 5.5 complete installation of Cacti + Spine

Cacti construction document under CentOS 6

Detailed description of Cacti monitoring deployment under RHEL5.9

How to install Cacti in CentOS 6.3

Quick installation and configuration of Cacti in CentOS Linux

3. Prepare required software packages
 
Apache http://www.apache.org/
Mysql http://www.mysql.com/
Php http://www.php.net
Rrdtool http://oss.oetiker.ch/rrdtool/
Net-snmp http://www.net-snmp.org/
Cacti http://www.cacti.net/

Apache and php are installed through yum
 
4. install required software
 
4.1 install LAMP
 
1 [root @ node2 app] # yum-y install httpd php-mysql
2 [root @ node2 app] # chkconfig httpd on
3 [root @ node2 app] #/etc/init. d/httpd start
Mysql has been installed using the source code. You do not need to install it using yum.
 
After the installation is complete, you can test it on the login page:


 

4.2. rrdtool
 
The installation of Rrdtool requires the support of cairo, libxml2, and pango libraries. you can install Rrdtool through yum.
 
1 [root @ node2 app] # yum-y install cairo-devel libxml2-devel pango-devel
2 [root @ node2 app] # tar zxvf rrdtool-1.4.8.tar.gz
3 [root @ node2 app] # cd rrdtool-1.4.8
4 [root @ node2 rrdtool-1.4.8] #./configure -- prefix =/usr/local/rrdtool
5 [root @ node2 rrdtool-1.4.8] # make & make install
6 [root @ node2 rrdtool-1.4.8] # ln-s/usr/local/rrdtool/bin/*/usr/local/bin/

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.