发信人"Star" <_s,tar@uos.;idv.tw_11>,
看板FreeBSD
标 题Re: 请问一下 snmpd.conf 的位置在哪里?
发信站SEEDNet News Service (Wed Apr 7 02:27:24 2004)
转信站ptt!ctu-reader!ctu-peer!Spring!news.nctu!feeder.seed.net.tw!news.seed.
先用
# 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"
"孤独小板鞋" <
[email protected]> 在邮件
news:
[email protected] 中撰写...
> 各位大大
> 我灌了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 [email protected]::::::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:[email protected].
> 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
>
> --
> ※ Origin: 台大电机 Maxwell 站 ◆ From: mis.im.tku.edu.tw
--
▁▂▃▄▅▆▇█★ 电 脑 狂 ◆█▇▆▅▄▃▂▁
United Organization- [
http://uniorg.net] /小筑 - 工友 - star (星雨)
jdli : 时间多捐献给自己的技术跟修养, 网路上的名声就跟packet依样, 传过水无痕,
不用太在意