The suspicious snmp service is reflected in many software. So we will introduce the Cacti software today. Now I will give a brief introduction to some functions and operations of this software. 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 the snmp service 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.