I. Overview of CACTI
1. Cacti is a software implemented in the PHP language, its main function is to use the SNMP service to obtain the data, and then use RRDtool to store and update the data, when the user needs to view the data, use RRDtool to generate the graph to present to the user. Therefore, SNMP and RRDtool are the key to cacti. SNMP is related to the and RRDtool is related to the data storage and graph generation.
2. mysql with PHP program to store some variable data and the variable data to call, such as: Host name, host IP, SNMP community name, port number, template information and other variables.
3. SNMP 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 RRD files, rrd files are fixed-size files (Round Robin Archive), and the number of data pens it can store is defined at the time of creation.
1> Configuration Lamp Environment
2> installation RRDtool and NET-SNMP
3> installation Cacti
4> configuration Cacti
5> Configure cacti Connection database
6 > Configure Cron Scheduled Tasks
7 > Configuration power-on Self-starter
8> Test
1> Configuration Lamp Environment
A. Install Apache
It's directly yum.
B. Installing the MySQL database
Yum-y install MySQL mysql-server mysql-devel