Deployment of--RPM packages for cacti systems based on SUSE Linux systems

Source: Internet
Author: User
Tags php language rrd rrdtool snmp snmpget mrtg

Bean Ding http://www.docin.com/p-191889788.html

RPM package method; Sha; 2010-12-1; change: 2011/5/16; I. Introduction to CACTI (source: network); cacti is to obtain data through snmpget, the development of using R;CACTI is based on letting RRDtool users Cacti is a software implemented in PHP language, it is the main; MySQL with PHP program store some variable data and the variable

123

 

Deployment of cacti system based on SUSE Linux system

--RPM Package method

Ah Yang--Sha

2010-12-1

Change: 2011/5/16

I. Introduction to CACTI (Source: Network)

Cacti is a snmpget to get data, use RRDtool to draw graphics, and you can absolutely not need to understand RRDtool complex parameters. It provides very powerful data and user management functions, can specify each user can view the tree structure, host and any map, but also can be combined with LDAP user authentication, but also can add their own templates, the function is very strong, user-friendly

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 diagram

Cacti is a PHP language implementation of a software, its main function is to use the SNMP service to obtain data, and then use RRDtool to store and update the data, when the user needs to view the data with the RRDtool to generate a chart presented to the user. Therefore, SNMP and RRDtool are the key to cacti. SNMP is related to the collection of data, rrdtool relationship between data storage and the generation of graphs

MySQL with PHP program to store some variable data and call the variable data, such as: Host name, host IP, SNMP community name, port number, template information and other variables

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. For RRDtool's knowledge, see RRDtool Teaching

1, cacti architecture (three-tier architecture)

1) The first layer: Data acquisition (through SNMP, custom scripts for the collection)

2) Second layer: Data storage layer (through MySQL, for example: Cacti module, etc., RRDtool is used to store monitored performance files)

3) Third layer: Data presentation (Web-based)

2, the function of cacti components and cacti working principle

1) What is SNMP

SNMP (Simple network Management Protocol) is an easy Web management protocol. The current version is: Version1, Version2, Version3, that is: The version is higher, the more secure

2) What is a MIB

The MIB (Management information Base) management information base, which is the standard for network management data, indicates the variables maintained by the network elements (i.e., messages that can be queried and set up by the management process). The MIB provides a data structure for the collection of all possible managed objects in a network

Managed devices collect and store management information through the Management database (MIB) and enable the network management system to obtain this information through an SNMP agent

3) How does the SNMP agent (SNMP agent) work with the Monitoring server (the host with the Cacti tool installed)?

3, Cacti case application

1) Network Settings

2) host system

(1) Network interface traffic (bandwidth in and out)

(2) Monitor CPU load, memory, etc.

(3) Monitor disk space, number of processes, etc.

......................................... Wait a minute

3) Cacti common monitoring objects

(1) Server resources: CPU, memory, disk, process, number of connections, etc.

(2) Server type: WEB, Mail, FTP, database, middleware

(3) network interface: Traffic, forwarding speed, packet loss rate

(4) Network device performance, configuration file (comparison and backup), number of routes

(5) Security device performance, number of connections, number of attacks

(6) Equipment operation status: Fan, power supply, temperature

(7) Computer room operating Environment: current, voltage, temperature and humidity

How cacti Works (Source: Network)

Cacti is a kind of monitoring software that uses RRDtool, SNMP, PHP, MySQL, Apache and many tools, its source code is based on PHP script and public, its basic work flow is:

1, using cron regularly execute PHP script code, through SNMP read the specified monitoring project SNMP information, and then save the results to the RRDtool data file.

2, in the Web monitoring interface through PHP read RRDtool and generate a specified monitoring project and a specified time period of the monitoring curve

It mainly has the following characteristics, of course, some are rrdtool characteristics:

1, based on the rrdtool to improve efficiency.

Cacti based on RRDtool storage monitoring data, it is not necessary to browse the entire data file when querying the monitoring data for a specified time period, and is more efficient than the MRTG text log. The generation of the monitor curve picture does not want to mrtg the same data

Step and timed, instead of using PHP scripts to generate a dynamic web image from the image generation tool provided by RRDtool.

2, monitoring project graph diversification.

RRDtool's image generation tool provides a variety of parameters, so you can dynamically set more style graphs, or you can display several monitoring items in a single image, such as if we want to display traffic Http/ftp/dns multiple protocols at the same time. Of course, other such as color, curve style, picture size format, descriptive text, etc. can be customized to produce. In addition, I think the biggest improvement is the timing of the time period of the graph generation, break through the MRTG of the Zhou fixed mode, of course, depending on your storage data bar number, hehe, in general, the day Zhou is a very scientific time style.

3, based on the web configuration and monitoring, easy to operate

Cacti is a web-based software, monitoring the new, configuration, management, monitoring of the project is done on a web basis, which is very comfortable for users.

Personal section

Cacti deployment

By compiling the cacti, during the installation process, due to the installation of the software version of compatibility issues, installation sequence, package missing, etc., will cause some strange problems, make installation cacti long and cumbersome, people also pain, and use the compilation method deployment contains many personalized settings, may be more suitable for high-end user groups, so here I choose to use the RPM package for cacti deployment.

1, in the SUSE system CD-ROM found some installation need to use the RPM package (specifically in the installation process)

2. Installation

1, Apache2

RPM-IVH libapr1-1.2.2-13.2.i586.rpm

RPM-IVH libapr-util1-1.2.2-13.2.i586.rpm

RPM-IVH apache2-2.2.3-16.18.i586.rpm--nodeps--force

RPM-IVH apache2-prefork-2.2.3-16.18.i586.rpm

2. php

RPM-IVH php5-5.2.5-9.5.i586.rpm--nodeps--force

RPM-IVH php5-timezonedb-2008.2-0.3.i586.rpm

RPM-IVH mm-1.4.0-13.2.i586.rpm

RPM-IVH apache2-mod_php5-5.2.5-9.5.i586.rpm

3. mysql

RPM-IVH mysql-shared-5.0.26-12.18.i586.rpm

RPM-IVH mysql-client-5.0.26-12.18.i586.rpm

RPM-IVH perl-data-showtable-3.3-584.2.i586.rpm

RPM-IVH perl-dbd-mysql-3.0002-15.2.i586.rpm

RPM-IVH mysql-5.0.26-12.18.i586.rpm

(Service MySQL Restart----------------------------------> can enter MySQL after startup)

4. Other PHP

300 million library 3y.uu456.com contains a variety of professional literature, secondary education, industry information, early childhood education, primary schooling, professional papers, life and leisure Entertainment, literature appreciation, applied writing instruments, all kinds of qualification examinations, foreign language learning materials, 16 cacti system deployment based on SUSE Linux system --RPM package way and so on content.

Deployment of--RPM packages for cacti systems based on SUSE Linux systems

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.