免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: frankzh
打印 上一主题 下一主题

新年 自己做个server庆祝下~! [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-02-05 20:14 |只看该作者

新年 自己做个server庆祝下~!

原帖由 "frankzh" 发表:


去下载 ucd-snmp-4.2.1.tar.gz和 mrtg-2.9.17.tar.gz 不要用linux自带的(你的问题可能就出现在这里,我猜)

先安装 ucd-snmp-4.2.1.tar.gz 不用说了吧
然后/usr/local/snmp/sbin/snmpd 运行起来


安装mrtg-2.9.17.tar.gz 时把这些参数带上:
>; --with-gd=/usr/include \
>; --with-gd-lib=/usr/lib \
>; --with-gd-inc=/usr/include \
>; --with-png=/usr/include \
>; --with-zlib=/usr/include

再make 和make install 应该没问题了~!


我照你的说法,下载了相关软件,先用rpm -e ucd.....卸载以前的
然后安装ucd-snmp-4.2.1.tar.gz,
结果发现make install后,没有/usr/local/snmp/sbin/snmpd这个
文件!
(没有卸载随机安装的ucd-snmp..时,make install后也没有这个文件)

为什么呀!!!我做什么都不顺!!!

在安装 mrtg软件时,按照你说明的参数运行configure ,报告如下
错误:
----------------------------------------------------------------
bash: --with-gd=/usr/include: No such file or directory
bash: --with-gd-lib=/usr/lib: No such file or directory
bash: --with-gd-inc=/usr/include: No such file or directory
bash: --with-png=/usr/include: No such file or directory
bash: --with-zlib=/usr/include: No such file or directory


经检查这些目录都是存在的。
再make错误仍然是.....rateup.o ......

论坛徽章:
0
12 [报告]
发表于 2003-02-05 22:02 |只看该作者

新年 自己做个server庆祝下~!

我仔细观察了ucd-snmp-4.2.1的安装过程,首先:

# configure --prefix=/usr/local/snmp

没有任何问题,接下来make的时候,报告了很多错误:

/tmp/cca5kAjS.s: Assembler messages:
/tmp/cca5kAjS.s:2563: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2563: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2563: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cca5kAjS.s:2590: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2590: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2590: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cca5kAjS.s:2606: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2606: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cca5kAjS.s:2606: Error: Rest of line ignored. First ignored character is `,'.
make[1]: *** [snmp_client.lo] Error 1
/tmp/ccYKQrR4.s: Assembler messages:
/tmp/ccYKQrR4.s:641: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:641: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:641: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:778: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:778: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:778: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:972: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:972: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:972: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:987: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:987: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:987: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:991: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:991: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:991: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:1160: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1160: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1160: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:1164: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1164: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1164: Error: Rest of line ignored. First ignored character is `,'.
/tmp/ccYKQrR4.s:1402: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1402: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccYKQrR4.s:1402: Error: Rest of line ignored. First ignored character is `,'.
make[2]: *** [mibII/system_mib.lo] Error 1
/tmp/cc4XAJKB.s: Assembler messages:
/tmp/cc4XAJKB.s:783: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:783: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:783: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:991: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:991: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:991: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:995: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:995: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:995: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1004: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1004: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1004: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1008: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1008: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1008: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1011: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1011: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1011: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1015: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1015: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1015: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1018: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1018: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1018: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1022: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1022: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1022: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1025: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1025: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1025: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1029: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1029: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1029: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1032: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1032: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1032: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1039: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1042: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1042: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1042: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1079: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1079: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1079: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1084: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1084: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1084: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1411: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1411: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1411: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1415: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1415: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1415: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1420: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1420: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1420: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1424: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1424: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1424: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1439: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1439: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1439: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1443: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1443: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1443: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1448: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1448: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1448: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1455: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1455: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1455: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1478: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1478: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1478: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:1484: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1484: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:1484: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:3051: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3051: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3051: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:3058: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3058: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3058: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:3831: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3831: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:3831: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:4028: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4028: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4028: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:4039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4039: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cc4XAJKB.s:4043: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4043: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cc4XAJKB.s:4043: Error: Rest of line ignored. First ignored character is `,'.
make[1]: *** [snmpd.lo] Error 1
/tmp/cckuzqaR.s: Assembler messages:
/tmp/cckuzqaR.s:612: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:612: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:612: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cckuzqaR.s:619: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:619: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:619: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cckuzqaR.s:692: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:692: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:692: Error: Rest of line ignored. First ignored character is `,'.
/tmp/cckuzqaR.s:705: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:705: Warning: Unrecognized .section attribute: want a,w,x
/tmp/cckuzqaR.s:705: Error: Rest of line ignored. First ignored character is `,'.
make[1]: *** [snmpget.lo] Error 1

——————————————————————————————————

Help me! 该怎么解决这个问题呀?

我用的是RH 7.3,该不会让我安装RH 7.2吧?

论坛徽章:
0
13 [报告]
发表于 2003-02-05 22:39 |只看该作者

新年 自己做个server庆祝下~!

我干脆把ucd-snmp换成net-snmp,结果还是在make的时候报错:

[root@rain net-snmp-5.0.5]# make
making all in /root/net-snmp-5.0.5/snmplib
make[1]: Entering directory `/root/net-snmp-5.0.5/snmplib'
/bin/sh ../libtool  --mode=compile gcc -g -O2 -Dlinux -I../include -I../includec
gcc -g -O2 -Dlinux -I../include -I../include -I. -I.. -I. -I./.. -c snmp_cliento
/tmp/ccNM1q3o.s: Assembler messages:
/tmp/ccNM1q3o.s:3039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3039: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3039: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3042: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3042: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3042: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3049: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3049: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3049: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3054: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3054: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3054: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3067: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3067: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3049: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3049: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3054: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3054: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3054: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3067: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3067: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3067: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3070: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3070: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3070: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3077: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3077: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3077: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3080: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3080: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3080: Error: Rest of line ignored. First ignored character is `.
/tmp/ccNM1q3o.s:3096: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3096: Warning: Unrecognized .section attribute: want a,w,x
/tmp/ccNM1q3o.s:3096: Error: Rest of line ignored. First ignored character is `.
make[1]: *** [snmp_client.lo] Error 1
make[1]: Leaving directory `/root/net-snmp-5.0.5/snmplib'
make: *** [subdirs] Error 1


究竟错在哪里?各位大侠请赐教!

论坛徽章:
0
14 [报告]
发表于 2003-02-05 22:51 |只看该作者

新年 自己做个server庆祝下~!

这个问题我没有碰过!你问问其他人看看是什么问题。是不是你系统安装时没有装好啊?我的也是在linux7.3下 很顺利装好了

论坛徽章:
0
15 [报告]
发表于 2003-02-05 23:36 |只看该作者

新年 自己做个server庆祝下~!

[quote]原帖由 "frankzh"]这个问题我没有碰过!你问问其他人看看是什么问题。是不是你系统安装时没有装好啊?我的也是在linux7.3下 很顺利装好了[/quote 发表:


你是完全安装,还是选择性地安装?

论坛徽章:
0
16 [报告]
发表于 2003-02-06 10:12 |只看该作者

新年 自己做个server庆祝下~!

你说说你的mail服务器配置组合吗?

论坛徽章:
0
17 [报告]
发表于 2003-02-06 11:04 |只看该作者

新年 自己做个server庆祝下~!

原帖由 "fastethernet" 发表:


你是完全安装,还是选择性地安装?


linux系统我是选择性安装的!没有xwindows

论坛徽章:
0
18 [报告]
发表于 2003-02-06 11:05 |只看该作者

新年 自己做个server庆祝下~!

[quote]原帖由 "hmkart"]你说说你的mail服务器配置组合吗?[/quote 发表:


sendmail+openwebmail(自由软件)


还有一种是sendmail+@atmessage(商业软件)不过我是用盗版的! 所以只在内网用过!

论坛徽章:
0
19 [报告]
发表于 2003-02-09 10:59 |只看该作者

新年 自己做个server庆祝下~!

[quote]原帖由 "frankzh"]刚做的linux主机,欢迎来测试 http://bbs.uc88.com[/quote 发表:


谢谢,我换了太机器成功了,编译安装都成功了,但是cfgmaker的结果是空的。

我先用snmpwalk查看 10.0.0.1得到很多信息:
snmpwalk 10.0.0.1 public

system.sysDescr.0 = Linux linux-server 2.4.18 #5 SMP Thu Jul 4 10:01:55 CST 2002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (29548 0:49:14.88
system.sysContact.0 = Root <root@localhost>; (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = linux-server
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sn
pMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sn
pVacmMIB.vacmMIBConformance.vacmMIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sn
pFrameworkMIB.snmpFrameworkMIBConformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCom
liance
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sn
pMPDMIB.snmpMPDMIBConformance.snmpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sn
pUsmMIB.usmMIBConformance.usmMIBCompliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects fo
network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
managi

................
................




再用执行cfgmaker public@10.0.0.1 >;crtg.cfg,查看crtg.cfg文件
内容如下:

# Created by
# /usr/bin/cfgmaker public@10.0.0.1

### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits


######################################################################
# System: linux-server
# Description: Linux linux-server 2.4.18 #5 SMP Thu Jul 4 10:01:55 CST 2002 i686
# Contact: Root <root@localhost>; (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################



我的问题出在哪里呢?

另外:
1. 我使用RH 7.3自带的ucd-snmp,这样会有问题吗?

2. cfgmaker执行中报告了许多错误:

2.10t@cd_linux73 mrtg]# cfgmaker  --output=/var/www/html/mrtg/net/mrtg.cfg public@10.0.0.1
--base: Get Device Info on public@10.118.32.10:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@10.0.0.1: does not seem to support it
--snpo: Skipping ifDescr scanning because public@10.0.0.1: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@10.118.32.10: does not seem to sut
--snpo: Skipping ifType scanning because public@10.0.0.1: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@10.0.0.1: does not seem to supt
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "10.0.0.1" [10.0.0.1].161)
                  community: "public"
                 request ID: 22248141
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMP Error:


为何snmpwalk能否查到信息,而cfgmaker却不能?

论坛徽章:
0
20 [报告]
发表于 2003-02-09 11:32 |只看该作者

新年 自己做个server庆祝下~!

为何snmpwalk 最后都要报告:

Timeout: No Response from 10.0.0.1


例如:

snmpwalk -v 1 10.0.0.1 public system
system.sysDescr.0 = Linux linux-server 2.4.18 #5 SMP Thu Jul 4 10:01:55 CST 2002 i686
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (483873) 1:20:38.73
system.sysContact.0 = Root <root@localhost>; (configure /etc/snmp/snmp.local.conf)
system.sysName.0 = linux-server
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID: .iso.org.dod.internet.snmpV2.snmpModules.snp
system.sysORTable.sysOREntry.sysORID.7 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sne
system.sysORTable.sysOREntry.sysORID.8 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sne
system.sysORTable.sysOREntry.sysORID.9 = OID: .iso.org.dod.internet.snmpV2.snmpModules.sne
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe generic objects fos
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2 entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP implementatios
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP and ICMP imples
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP implementatios
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing and Dispatchin.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information definitions for th.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
Timeout: No Response from 10.0.0.1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP