The Cacti Chinese version is a software implemented in php. Its main function is to use the snmp service to obtain data and then use rrdtool to store and update data, when you need to view data, use rrdtool to generate charts and present them to users.
1. Test whether snmp is normal
#snmpwalk -c public -v 2c localhost
#snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.61.xxx.xxx.xxx = INTEGER: 2
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
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 add it to the snmpd. conf (/etc/snmp/snmpd. conf) of the Monitored machine.
Disk/(for example, we monitor the root partition)
Then you can 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.
# Snmpwalk-c public-v 2c localhost IF-MIB: ifHCInOctets
IF-MIB: ifHCInOctets.1 = Counter64: 3174458
IF-MIB: ifHCInOctets.2 = Counter64: 1585772167
IF-MIB: ifHCInOctets.3 = Counter64: 35696997927
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.
Net-snmp5.2.src.rpm
This package is added by default enable-mfd-rewrites. Download, directly use the above method of rpmbuild-bb SPECS/net-snmp.spec after compilation on the line.
Sometimes you still cannot get the data. Check whether your snmpd. conf is configured correctly. The following is the description, and the read option is all.
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/