I. Introduction to cacti network management (such as host load and network traffic monitoring) is an important part of the daily work of system management personnel, many vendors provide their own solutions. One of the most famous early open-source network management software, MRTG, was developed using perl to implement communication between management workstation and device proxy processes through the SNMP protocol, to monitor the device management and running status. The MRTG installation and configuration are simple and the graphic interface is intuitive, because it was widely favored by network administrators at that time, it is also the author's early 1. Introduction to cacti Network management (such as host load and network traffic monitoring) is an important part of the daily work of system management personnel. Many vendors provide their own solutions. One of the most famous early open-source network management software, MRTG, was developed using perl to implement communication between management workstation and device proxy processes through the SNMP protocol, to monitor the device management and running status. The MRTG installation and configuration are simple and the graphic interface is intuitive, because it was widely favored by network administrators at that time, and it also contributed to my early network management work. However, MRTG also has many inherent drawbacks, such as the use of text-based databases, data cannot be reused; data can only be viewed by day, week, month, or year; only two DS (one line and one block) can be drawn for each graph. data needs to be painted once for each fetch, which wastes system resources. At the same time, it does not provide management functions. In view of this, the author of MRTG later developed another tool, rrdtool. Rrdtool is a data recorder with excellent performance and a powerful drawing engine. It uses the rrd data storage format, and the data can be reused. In terms of plotting, it can define any time period for plotting and draw multiple DS. But it also has its own disadvantages: although it provides powerful data storage and drawing functions, rrdtool does not provide data collection functions similar to those integrated in MRTG. At the same time, it provides too many parameters, making it inconvenient to use the command line interface. In addition, rrdtool does not provide management functions. So cacti came into being. To put it simply, Cacti is a forefront of rrdtool. It has built-in quick data acquisition tools, excellent drawing templates, and many well-designed data acquisition scripts, this allows you to easily draw trend diagrams of host load, network traffic, and other information by combining the powerful data capture, data storage, and drawing functions of rrdtool. The latest software version is 0.8.7e. Cacti is a software implemented in php. Its operation requires the support of website servers (such as apache) and PHP environments. At the same time, cacti also requires Mysql to work with PHP programs to store some variable data and call the variable data, such as host name, Host ip address, snmp group name, port number, template information, and other variables. The statistics on host load, network traffic, and other information by rrdtool must be implemented through the SNMP protocol. The data captured by SNMP is stored in rrd files generated by rrdtool, which are usually located in the rra directory of cacti. Rrdtool processes rrd files for data update and storage, and rrd files are static Archive files (Round Robin Archive ), the number of data records it can store has been defined at the time of creation.
Functions of cacti components:
Cacti workflow:
Ii. cacti dependent Software Package 1. Dependency description RRDTool 1.0.49 or 1.2.x or later; MySQL 4.1.x or 5.x or later; PHP 4.3.6 or later; 5 is recommended. x series, which is required for advanced cacti functions; Apache (or ISS for Windows ); In this example, each software package uses the rpm package provided by the system CD as much as possible, while rrdtool uses the source code package. The rpm package to be installed is as follows: Php-5.1.6-23.el5php-mysql-5.1.6-23.el5php-gd-5.1.6-23.el5php-snmp-5.1.6-23.el5php-pdo-5.1.6-23.el5 Mysql-5.0.45-7.el5mysql-devel-5.0.45-7.el5mysql-server-5.0.45-7.el5 Httpd-2.2.3-22.el5 Net-snmp-libs-5.3.2.2-5.el5net-snmp-5.3.2.2-5.el5net-snmp-utils-5.3.2.2-5.el5 Libart_lgpl-2.3.17-4libart_lgpl-devel-2.3.17-4 The installation of rrdtooluses rrdtool-1.2.30.tar.gz in this document. At the same time, it requires support from pango-1.7.5 and later versions. Therefore, you also need to update the pango software package in the system in advance. 2. Installation of the preceding Software Package (1) software packages in rpm format We recommend that you install rpm software packages in yum mode. You can run the following command: # yum install package_name, [p2,…] If there is no suitable yum source, mount the system installation disc and run the rpm installation command to install it. The installation can be done as follows: # rpm-ivh package (2) install the source code package Pango-1.17.5 # tar jxvf pango-1.17.5.tar.bz2 # D pango-1.17.5 #./configure # make install (Ii) rrdtool-1.2.30 # tar zxvf rrdtool-1.2.30.tar.gz # cd rrdtool-1.2.30 #./configure -- prefix =/usr/local/rrdtool # make install Create a link for the rrdtool binary file to/usr/local/bin, cacti finds the required rrdtool # ln-s/usr/local/rrdtool/bin/*/usr/local/bin by default. Add the library file of rrdtool to the search path of the system library file: # vi/etc/ld. so. conf Add:/usr/local/rrdtool/lib # Ldconfig-v
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