Easy time monitoring tool Cacti

Source: Internet
Author: User
Tags rrdtool snmp port snmpget
Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. You can use snmpget to obtain data and use RRDtool to draw images. You do not need to understand the complex parameters of RRDtool. It provides powerful data and user management functions, allowing you to specify that each user can view the tree structure, host, and any Cacti is based on PHP, MySQL, SNMP, and RRDTool. You can use snmpget to obtain data and use RRDtool to draw images. 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.

To make cacti work normally, we need to know the Helper tools snmp and RRDtool.

SNMP

Snmp (Simple Network Management Protocal)ArchitectureThe monitoring subsystem of the system will play an important role. In general, the basic principle is that an agent is run on each monitored host or node (such as a switch) to collect all relevant information about the node, listen to the snmp port, that is, UDP 161, and receive commands (queries and settings) from the monitoring host from this port ).
If you use the net-snmp of RHEL5, the monitored host needs to install net-snmp (including the snmpd agent), and the monitored host needs to install net-snmp-uti.Ls. If you compile the code on your own, you need the beecrypt (libbeecrypt) and elf (libraryelf) libraries.
Each agent maintains a tree-like database called MID (Management InfoRmEvery node is called the Object Identifier (OID), which is used when the net-snmp-utils tool is used. These nodes indicate the device of the host system, such as the interface description of the NIC (eth0, etc.), physical address (MAC), interface type, or system information, or the process to be monitored...

RRDtools

Use RRDtool to store and process data collected through SNMP. This data is probably the number of bytes (BITs) that a network or computer receives or sends ). It can also be used to show the tide of waves, sunlight, power consumption, visitors to the exhibition, noise levels near the airport, the temperature of your favorite resort, the temperature of the refrigerator, and anything you can imagine something.
You need a measurement data and a sensor that can provide the data to RRDtool. RRDtool allows you to create databases, store data, extract data, and create images in PNG format displayed in a Web browser. These PNG images are the data you have collected. They can be average network usage and peak values.

Let's take a look at the application scope of this tool:

Common monitoring applications include:

1. monitor server resources: CPU, memory, disk, process, connections, etc.
2. Monitoring Server types: WEB, Mail, FTP, database, and Middleware
3. Monitoring Network Interfaces: traffic, forwarding speed, and Packet Loss Rate
4. Monitor the running status of the device: fan, power supply, and temperature
5. Monitor the running environment of the data center: current, voltage, temperature and humidity

This tool has the following advantages:

1. Open Source Software
2. The interface is more beautiful than other monitoring software and can draw beautiful and accurate data diagrams.
3. cross-platform monitoring
4. Strong scalability. We can add different modules to implement different monitoring functions.

Quick Cacti Installation

I. Environment Introduction

Master monitoring machine IP = 192.168.0.82

Ii. installation and configuration

(1) install the required apache +Php+ It is recommended to compile and install the gd web environment. This experiment uses yum for convenience.
Yum install php-mysql php-snmp mysql-server php-pdo perl-DBD-MySQL

(2) install extremely related snmp components of helper software on the main monitoring Machine
Yum install net-snmp-libs net-snmp-utils-y

(3) install rrdtool on the main monitoring machine. Because there are too many packages that rrdtool depends on, we choose to add the source and install it with yum.
Yum install rrdtool-devel rrdtool-php-y

Start snmpd service
Service snmpd restart

Add the snmp service to the auto start column:
ChkconfigSnmpd on

(4) install cacti

SetExtractMove the package to yourHttpdUnder the corresponding web directory defined in
Tar xvf cacti-0.8.7e.tar.gz
MvCacti-0.8.7e/var/www/html/cacti

Related Article

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.