SNMP Error

SNMP Error:

Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.2.2.1.16.322)
SNMPv1_Session (remote host: "192.168.1.1" [192.168.1.1].161)
community: "public"
request ID: 1761269690
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 492
SNMPGET Problem for ifInOctets.322 ifOutOctets.322 sysUptime sysName on public@192.168.1.1::::::v4only
at /usr/bin/mrtg line 2207
2011-07-06 10:15:02: ERROR: Target[192.168.1.1_322][_IN_] ' $target->[3]{$mode} ' did not eval into defined data
2011-07-06 10:15:02: ERROR: Target[192.168.1.1_322][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data

只要修改MTU,再重撥adsl,

ppp0的MRTG圖就出不來,一路平,而出現以上的錯誤訊息,
想說是不是重開機或者是有改MTU,而造成的,
東查西查,懷疑是Mib有變,
重跑
/usr/bin/cfgmaker --global "WorkDir: /var/www/mrtg" --global "Options[_]: bits,growright" --output /etc/mrtg/mrtg.cfg public@192.168.1.1
真機車 322變成 230,
看來oid有變
竟然花了我半天,真想大叫


後記~~
如遇到
SNMP Error:
no response received
通常有可能是要監控的主機防火牆沒開,又或public名稱沒設對,
在2008R2...遇過一次








~~

沒有留言:

張貼留言