Cacti Chinese Version test analysis and problem solution

Source: Internet
Author: User
Tags rrdtool snmpwalk rpmbuild

Cacti is a set of graphic analysis tools for network traffic monitoring developed based on PHP, MySQL, SNMP, and RRDTool. Cacti Chinese version uses snmpget to obtain data and use RRDtool to draw images. You do not need to understand the complex parameters of RRDtool.

1. Test whether snmp is normal

 
 
  1. #snmpwalk -c public -v 2c localhost  
  2. #snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex  
  3. IP-MIB::ipAdEntIfIndex.61.xxx.xxx.xxx = INTEGER: 2  
  4. IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1  
  5. IP-MIB::ipAdEntIfIndex.172.xxx.xxx.xxx = INTEGER: 3  

You can also run the snmpd-f-Le command to check whether any errors have occurred.

FQA:

1. If the disk is not monitored
Use the ucd/net-Get Monitored Partitions template in the Cacti Chinese version, and then run the snmpd on the Monitored machine. conf (/etc/snmp/snmpd. in conf), add disk/(for example, we monitor the root partition) and then use the snmpwalk-v 1-c public 192.168.0.52 dsktable command to check

2. If the image comes
1. Check whether your host is active. You must pass the test and the status is active. You can use commands to check whether output exists.
2. In addition, the default rrdtool version of Cacti is RRDTool 1.1.x! -- Choose Console> System Utilities> Technical Support> RRDTool Version and select RRDTool 1.2.x. Otherwise, the figure may fail.

3. Why is there a problem when the network card Traffic reaches MB?
This is related to the snmp version. The data in snmp1 is 32 bits, while that in snmp2c is 64 bits (AS4 does not support 64 bits by default ).
1. Make sure that you are using snmp2c or above and whether the 64-bit MIB library is supported. If the returned rows contain "Counter64:", the returned rows are supported.

 
 
  1. #snmpwalk -c public -v 2c localhost IF-MIB::ifHCInOctets  
  2. IF-MIB::ifHCInOctets.1 = Counter64: 3174458  
  3. IF-MIB::ifHCInOctets.2 = Counter64: 1585772167  
  4. IF-MIB::ifHCInOctets.3 = Counter64: 35696997927  
  5. IF-MIB::ifHCInOctets.4 = Counter64: 0  

2. Click "Console->; Create New Graphs->; Data Query" on the Cacti Chinese Version page ". The drop-down menu "Select a graph type:" is "In/Out bits" by default "), change the 64 bits data to "In/Out bits (64-bit Counters)", and then select the network card you want to monitor. In addition, the "Maximum Value" of the monitoring site must be set to more than MB.
3. In device management, select the SNMP Version of the host, which must be 2.

Ii. RedHat AS4(Not supported below net-snmp5.2)Solution to the problem that snmp does not support 64-bit counters(This method is provided by Hee hee Haha http://www.haw-haw.org/node/654)

You can download a src. rpm file and add the-enable-mfd-rewrites \ In the configure of the/usr/src/redhat/SPECS/net-snmp.spec file \
Then
# Cd/usr/src/redhat/
# Rpmbuild-bb SPECS/net-snmp.spec
Generate a bunch of x86_64.rpm in/usr/src/redhat/RPMS/x86_64. If it is 32-bit, it will be under i386. Just install it.

Note: The 64-bit counter is a newly added IF-MIB on net-snmp 5.2, which can convert more MIB objects (e.g. ifXTable with 64-bit ifHC * counters ). if the default 5.2 src package is used for all images such as RHEL4 and Centosd4, it will not work even if enable-mfd-rewrites is added. therefore, download the 5.2 src package to install the SDK.

 

The net-snmp5.2.src.rpm package is added with enable-mfd-rewrites by default. after the download, directly use the above method of rpmbuild-bb SPECS/net-snmp.spec compiled after installation on the line. sometimes you still cannot get data. Pay attention to your snmpd. whether the conf file is configured correctly. the following are all read options.
Access notConfigGroup "" any noauth exactAllNone
If you do not want to compile the redhat4 file, download the redhat4 rpm and install it directly.

Http://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL4/net-snmp/

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.