Cacti Introduction and Deployment

Source: Internet
Author: User
Tags install php ldap php file rrd rrdtool snmp snmp port
a brief introduction to cactiCacti is a set of graphical analysis tools for network traffic monitoring based on PHP,MYSQL,SNMP and RRDtool development. Use PHP for front-end code drivers. The data information of the monitored host is obtained through SNMP. RRDtool is related to the generation of data stores and graphs. MySQL works with PHP programs to store variable data and make calls to variable data. It provides very powerful data and user management functions, can specify each user can view the tree structure, host and any map, also can be combined with LDAP user authentication, but also can add their own templates, the function is very powerful perfect. Cacti's development is based on making RRDtool users more convenient to use the software, in addition to basic SNMP traffic and system information monitoring, cacti can also plug scripts and add templates to make a variety of monitoring charts.

SNMP (Simple network Management, protocal, and simplified Web Management Protocol) will play an important role in the monitoring subsystem of the architecture system. In general, the rationale is that each monitored host or node (such as a switch) runs an agent that collects all the relevant information about the node while listening to the SNMP port, which is UDP 161, and receives instructions (queries and settings) from the monitoring host from this port. If the installation of net-snmp, the monitored host needs to install NET-SNMP (including the agent SNMPD), and the monitoring side need to install net-snmp-utils, if you accept the monitored side through trap-communicate sent information, You need to install NET-SNMP and enable the trap service. If you compile yourself, you need libraries for Beecrypt (Libbeecrypt) and Elf (libraryelf).

The SNMP catch data is not stored in MySQL, but exists in the RRDtool generated RRD file (under the Rra folder in the cacti root directory). RRDtool Update and storage of data is the processing of the RRD file, the RRD file is a fixed size file (Round Robin Archive), it can store the number of data is defined at the time of creation.

RRDtool refers to the round Robin database tool (ring-shaped databases). Round Robin is a technique for processing quantitative data, as well as pointers to current elements. Imagine a perimeter-labeled ring-these points are where the time is stored. Draw an arrow from the center of a circle to a point in the circumference-this is the pointer. Just as we are on a ring, there is no beginning or end, you can go down. Come over for a while, all available locations will be used, and the loop process will automatically reuse the original location. This way, the dataset does not grow and maintenance is not required. RRDtool processes the RRD database. It stores data in the RRD database and extracts data from the RRD database.


Two cacti build 1.Cacti service End 1.lamp Environment construction

     
     
      
      #安装httpd Yum install httpd-y systemctl enable httpd Syst Emctl start httpd #开启防火墙80端口 firewall-cmd--permanent--add-port=80/tcp firewall-cm
      
      D--reload #安装mariadb数据库 (MySQL open source version) Yum install mariadb mariadb-server-y Systemctl enable Mariadb.service systemctl start Mariadb.service cp/usr/share/mysql/my-hug E.cnf/etc/my.cnf #初始化数据库 (after entering password option select Yes) mysql_secure_installation # Install php yum install php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring ph
      
      P-bcmath php-mhash-y #修改时区 vim/etc/php.ini date.timezone =PRC #878行 #重启mariadb, httpd systemctl restart Mariadb.service systemctl restart httpd #编辑text.
     
      PHP File Test Web page
   2 configuration cacti

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.