先用
#
snmpwalk -c public -v 1 localhost system
測試一下是否能查到 snmpd 的回應資訊
如果你的 net-snmp 是由 ports 安裝那 snmpd.conf
必須放在 /usr/local/etc/snmp/ 這裡面 (這目錄要自己開)
注意的是 net-snmp-5.x 以後使用 rc.subr
由Ports安裝完還要在 rc.conf 裡面加
snmpd_enable="YES"
"孤獨小板鞋" <musicswa...@bbs.ee.ntu.edu.tw> 在郵件
news:4BTSKH$
_5x@bbs.ee.ntu.edu.tw 中撰寫...
> 各位大大
> 我灌了net-snmp-5.1_4
>
mrtg-2.10.13
> 在執行 /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.kilala
> 出現下面的
錯誤訊息,自己試了很多方式還是無法解錯誤,
> 目前mrtg的index.html有出現,但是流量並沒有被導入mrtg的網頁中
> 所以想問一下是不是我有哪個地方漏掉了,還是我必須要去編輯snmp.conf
> 不過我ports安裝的snmp,它的snmp.conf我找不到耶,
> 有哪位大大可以幫我指導一下 ,感謝。
> SNMP Error:
> no response received
> SNMPv1_Session (remote host: "163.13.241.134" [163.13.241.134].161)
> community: "public"
> request ID: 1081126083
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /usr/local/lib/perl5/site_perl/5.6.1/SNMP_util.pm line 487
> SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName
> on pub...@163.13.241.134::::::v4only
> at /usr/local/bin/mrtg line 1835
> WARNING: skipping because at least the query for ifInOctets.1 on
> 163.13.241.134 did not succeed
> WARNING: no data for ifInOctets&ifOutOctets:pub...@163.13.241.134.
> Skipping further queries for Host 163.13.241.134 in this round.
> ERROR: Target[163.13.241.134.1][_IN_] ' $target->[0]{$mode} '
> did not eval into defined data
> ERROR: Target[163.13.241.134.1][_OUT_] ' $target->[0]{$mode} '
> did not eval into defined data
> --
> [m※ Origin: 臺大電機 Maxwell 站 ◆ From: mis.im.tku.edu.tw