分类:
2011-03-28 11:05:52
在cacti中有时会遇到部分流量图进出流量一样的情况,或者流量不准,根据经验,一般是由于所监控的机器流量大于100M/s,而使用的图形模板不匹配或不支持snmp 64bit计数器的。
可以通过以下测试判断所监控机器是否支持64bit mib
(如何检测服务器的net-snmp是否支持64bit计数)
使用OID “ifHCInOctets”
不支持的情况
-bash-3.00$ snmpwalk -v 2c -c L97iDuba 192.168.1.102 ifHCInOctets |
more
IF-MIB::ifHCInOctets = No Such Object available on this agent at this OID
支持的情况
-bash-3.00$ snmpwalk -v 2c -c L97iDuba 172.16.181.251 ifHCInOctets | more
IF-MIB::ifHCInOctets.1 = Counter64: 2615760077636
IF-MIB::ifHCInOctets.2 = Counter64: 3655743829088
IF-MIB::ifHCInOctets.3 = Counter64: 8794997522837
IF-MIB::ifHCInOctets.4 = Counter64: 9363602312665
IF-MIB::ifHCInOctets.5 = Counter64: 123165600000587
IF-MIB::ifHCInOctets.6 = Counter64: 111955977748997
IF-MIB::ifHCInOctets.7 = Counter64: 107834016722773
IF-MIB::ifHCInOctets.8 = Counter64: 81340521166786
IF-MIB::ifHCInOctets.9 = Counter64: 40315864363352
IF-MIB::ifHCInOctets.10 = Counter64: 0