|
|
发表于 2004-3-2 12:21:22
|
显示全部楼层
1. 我的snmp是手工安装的, 选用snmp v2, 启动命令是;
/usr/local/snmp/sbin/snmpd -c /usr/local/snmp/snmpd.conf
snmp服务是确认已启动的了, 因为我运行其他cfg文件时通过
/usr/local/snmp/snmpd.conf:
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
view systemview included .1.3.6.1.4.1.2021.10.1.5
view systemview included .1.3.6.1.4.1.2021.11
view systemview included .1.3.6.1.2.1.25.2.3.1.6
view systemview included .1.3.6.1.2.1.2
view systemview included .1.3.6.1.4.1.2021.9.1.8
view systemview included .1.3.6.1.2.1.25.1.6
view systemview included .1.3.6.1.2.1.6.9
access notConfigGroup "" any noauth exact systemview none none
syslocation Unknown (edit /usr/local/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /usr/local/snmp/snmp.local.conf)
#disk / 100000
#disk /mnt/data 500000
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat
2. 运行 env LANG=C /usr/local/mrtg/bin/mrtg /usr/local/mrtg/system.cfg时出现以下错误信息:
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.25.2.3.1.6.3)
SNMPv1_Session (remote host: "192.168.1.137" [192.168.1.137].161)
community: "public"
request ID: 1964087418
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 487
SNMPGET Problem for hrStorageUsed.2 hrStorageUsed.3 sysUptime sysName on public@192.168.1.137::::::v4only
at /usr/local/mrtg/bin/mrtg line 1835
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.4.1.2021.9.1.8.2)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 89710695
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 487
SNMPGET Problem for dskUsed.1 dskUsed.2 sysUptime sysName on public@localhost::::::v4only
at /usr/local/mrtg/bin/mrtg line 1835
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 2 (OID: 1.3.6.1.2.1.25.1.6.0)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 89710696
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 487
SNMPGET Problem for hrSystemProcesses.0 hrSystemProcesses.0 sysUptime sysName on public@localhost::::::v4only
at /usr/local/mrtg/bin/mrtg line 1835
ERROR: Target[mem][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
ERROR: Target[mem][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data
ERROR: Target[disk][_IN_] ' $target->[4]{$mode} ' did not eval into defined data
ERROR: Target[disk][_OUT_] ' $target->[4]{$mode} ' did not eval into defined data
ERROR: Target[process][_IN_] ' $target->[5]{$mode} ' did not eval into defined data
ERROR: Target[process][_OUT_] ' $target->[5]{$mode} ' did not eval into defined data |
|