As a Linux SA, the most important thing in daily life is to ensure the normal and stable operation of the website, we need to monitor the running state of the website and the server in real time, then we need to use open source software (cacti, nagios, Zabbix, etc.) monitoring to realize. 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 is related to data storage and chart generation. 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, the RRA suffix is typically the name). The simple schematic diagram is as follows:
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/87/04/wKioL1fRdaLTc-SKAAEyvX_jt-Y755.png-wh_500x0-wm_3 -wmp_4-s_1616648118.png "title=" image 1.png "alt=" Wkiol1frdaltc-skaaeyvx_jt-y755.png-wh_50 "/>
Installation steps:
Install lamp Environment:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/04/wKioL1fRd6Cjt8fKAAAKOOzho68012.png "title=" 11.png "alt=" Wkiol1frd6cjt8fkaaakoozho68012.png "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/04/wKioL1fRd8-ho-AEAABT_eemT8E813.png-wh_500x0-wm_3 -wmp_4-s_2235272782.png "title=" Qq20160908223749.png "alt=" Wkiol1frd8-ho-aeaabt_eemt8e813.png-wh_50 "/>
2. Installing the RRDtool Collection tool
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/87/04/wKioL1fReUjBuwpRAAAhc1AnThs902.png "style=" float: none; "title=" 13.png "alt=" Wkiol1freujbuwpraaahc1anths902.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/06/wKiom1fReUnwHPDrAAAvF7frY18026.png "style=" float: none; "title=" 14.png "alt=" Wkiom1freunwhpdraaavf7fry18026.png "/>
3. Installing the SNMP Service
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/87/06/wKiom1fRedqgDVi6AAAmUN3NZm0020.png "title=" 15.png "alt=" Wkiom1fredqgdvi6aaamun3nzm0020.png "/>
4. Install the cacti main program
Download Cacti Source Package http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/87/06/wKiom1fRf0rzB_kSAAAxeG8IayU943.png-wh_500x0-wm_3 -wmp_4-s_921400541.png "title=" 16.png "alt=" Wkiom1frf0rzb_ksaaaxeg8iayu943.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/05/wKioL1fRgXygCGt2AABOBmk1BP8419.png-wh_500x0-wm_3 -wmp_4-s_3954034278.png "title=" 17.png "alt=" Wkiol1frgxygcgt2aabobmk1bp8419.png-wh_50 "/>
5. Create a cacti database
This article is from the "Li Xiaodong" blog, make sure to keep this source http://lixiaodong2016.blog.51cto.com/11693292/1850923
Cacti Monitoring platform Building (based on Centos6.7)