免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1850 | 回复: 8
打印 上一主题 下一主题

关于安装net-snmp的问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-11-06 14:53 |只看该作者 |倒序浏览
最近看了几篇mrtg的文章,于是也想让它来检测服务器运行状态,在安装net-snmp的时候,出了些问题,希望大家帮帮忙看看!

服务器已经安装好了net-snmp.
[root@lztv root]# rpm -qa |grep net-snmp
net-snmp-devel-5.0.6-17
net-snmp-5.0.6-17
net-snmp-utils-5.0.6-17
但是在运行的时候出错.
[root@lztv root]#service snmpd start
启动 snmpd:/usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
[失败]

在网上找了半天,没找到相关的问题,请问有朋友知道吗?

论坛徽章:
0
2 [报告]
发表于 2004-11-07 08:26 |只看该作者

关于安装net-snmp的问题!

没人知道吗?我自己顶!

论坛徽章:
0
3 [报告]
发表于 2004-11-07 20:27 |只看该作者

关于安装net-snmp的问题!

我再顶!!!!

论坛徽章:
0
4 [报告]
发表于 2004-11-07 21:06 |只看该作者

关于安装net-snmp的问题!

[root@tooth root] # /etc/rc.d/init.d/snmpd start

试试

你可以下载ucd-snmp-4.2.1.tar.gz包
安装下

论坛徽章:
0
5 [报告]
发表于 2004-11-08 08:37 |只看该作者

关于安装net-snmp的问题!

原帖由 "牙齿晒太阳"]th root 发表:
# /etc/rc.d/init.d/snmpd start

试试

你可以下载ucd-snmp-4.2.1.tar.gz包
安装下


[root@lztv root]# /etc/rc.d/init.d/snmpd start
启动 snmpd:/usr/sbin/snmpd: relocation error: /usr/sbin/snmpd: undefined symbol: smux_listen_sd
                                                           [失败]

我之前装过ucd-snmp,现在想装net-snmp,后者是前者的升级吧!

论坛徽章:
0
6 [报告]
发表于 2004-11-08 09:53 |只看该作者

关于安装net-snmp的问题!

看看ucd-snmp是否卸载了,
再运行netstat -nlp |grep snmpd看看是否有别的snmpd服务启动

论坛徽章:
0
7 [报告]
发表于 2004-11-08 11:54 |只看该作者

关于安装net-snmp的问题!

原帖由 "zhangjiakouzf" 发表:
看看ucd-snmp是否卸载了,
再运行netstat -nlp |grep snmpd看看是否有别的snmpd服务启动


现在最关键就是怎么卸载ucd-snmp了,因为不是用rpm安装的,用configure安装,当初安装也并没有指定安装到那目录,删除是不是挺麻烦的?查看:

[root@lztv ucd-snmp-4.2.6]# cat Makefile
# Generated automatically from Makefile.top:Makefile.in by configure.
#
# Minimum environment and virtual path setup
#
SHELL           = /bin/sh
srcdir          = .
top_srcdir      = .
VERSION         = 4.2.6


#
# Paths
#
prefix          = /usr/local
exec_prefix     = /usr/local
bindir          = ${exec_prefix}/bin
sbindir         = ${exec_prefix}/sbin
libdir          = ${exec_prefix}/lib
datadir         = ${prefix}/share
includedir      = ${prefix}/include/ucd-snmp
mandir          = ${prefix}/man
man1dir         = $(mandir)/man1
man3dir         = $(mandir)/man3
man5dir         = $(mandir)/man5
man8dir         = $(mandir)/man8
snmplibdir      = $(datadir)/snmp
mibdir          = $(snmplibdir)/mibs
persistentdir   = y


#
# Programs
#
INSTALL         = $(LIBTOOL) --mode=install /usr/bin/install -c
SED             = sed
LN_S            = ln -s
#AUTOCONF       =
#AUTOHEADER     =
AUTOCONF        = autoconf
AUTOHEADER      = autoheader

#
# Compiler arguments
#
CFLAGS          = -g -O2 -Dlinux -I/usr/include/rpm
EXTRACPPFLAGS   = -x c
LDFLAGS         =  
LIBTOOL         = $(SHELL) $(top_builddir)/libtool
EXEEXT          =
SHVFLAGS        = -release 0.$(VERSION)

# Misc Compiling Stuff
CC              = gcc
# version number is prefixed by a 0 for a better shared library version number
LIB_LD_CMD      = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -rpath $(libdir) $(SHVFLAGS) -o
LIB_EXTENSION   = la
LIB_VERSION     =
LIB_LDCONFIG_CMD = $(LIBTOOL) --mode=finish $(libdir)
LINK            = $(LIBTOOL) --mode=link $(CC)
# RANLIB        = ranlib
RANLIB          = :

# libtool definitions
.SUFFIXES: .c .o .lo
.c.lo:
        $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
#
# Makefile.in (at the root of ucd-snmp)
#

top_builddir    = .
TARG            =       bin/snmpget$(EXEEXT) bin/snmpgetnext$(EXEEXT) bin/snmpset$(EXEEXT)      \
                        bin/snmptranslate$(EXEEXT) bin/snmpwalk$(EXEEXT) bin/snmpbulkwalk$(EXEEXT) \
                        bin/snmptest$(EXEEXT) bin/snmptrapd$(EXEEXT) bin/snmpnetstat$(EXEEXT) bin/snmpd$(EXEEXT)

SUBDIRS         = snmplib agent apps local ov man
INSTALLDIRS     = snmplib agent apps local man mibs
TESTDIRS        = testing

CPP             = gcc -E                                                \
                        -I$(srcdir)/agent/mibgroup -I. -I$(srcdir)      \
                        -DDONT_INC_STRUCTS -DBINDIR=$(bindir)           \
                        $(EXTRACPPFLAGS)


CPP = gcc -E -I$(srcdir)/agent/mibgroup -I. -I$(srcdir) -DDONT_INC_STRUCTS -DBINDIR=$(bindir) $(EXTRACPPFLAGS)

INSTALLHEADERS=ucd-snmp-config.h $(srcdir)/version.h mib_module_config.h

all:    sedscript EXAMPLE.conf ucd-snmp-config.h subdirs

test:   all
        ( cd testing; $(MAKE) test )

sedscript: sedscript.in config.h $(srcdir)/agent/mibgroup/mibdefs.h
        $(CPP) -DPREFIX=$(prefix) -DLIBDIR=$(libdir) -DDATADIR=$(datadir) $(srcdir)/sedscript.in | egrep '^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/#g/;' >; sedscript


ucd-snmp-config.h: config.h
        @egrep -v "IN_UCD_SNMP_SOURCE|SYSTEM_INCLUDE|MACHINE_INCLUDE|mib_module_config" config.h >; ucd-snmp-config.h

subdirs:
        for i in $(SUBDIRS) ; do        \
        ( cd $$i ; $(MAKE) ) ;          \
        done


test: all testdirs

testdirs:
        for i in $(TESTDIRS) ; do       \
        ( cd $$i ; $(MAKE) ) ;          \
        done


distall: ${srcdir}/configure ${srcdir}/config.h


install:    all installdirs
        for i in $(INSTALLDIRS) ; do    \
        ( cd $$i ; $(MAKE) install ) ;  \
        done
        @for i in $(INSTALLHEADERS) ; do \
                $(INSTALL) $$i $(includedir) ; \
                echo "install:  installed $$i in $(includedir)";\
        done

installdirs:
        @$(SHELL) $(srcdir)/mkinstalldirs $(snmplibdir) $(mibdir) $(includedir)
        @-$(SHELL) $(srcdir)/mkinstalldirs $(persistentdir)

apps/snmpget$(EXEEXT) apps/snmpgetnext$(EXEEXT) apps/snmpset$(EXEEXT) apps/snmptranslate$(EXEEXT) apps/snmpwalk$(EXEEXT) apps/snmpbulkwalk$(EXEEXT) apps/snmptest$(EXEEXT) apps/snmptrapd$(EXEEXT) apps/snmpnetstat/snmpnetstat$(EXEEXT) agent/snmpd$(EXEEXT): makeall


depend:
        cd snmplib; $(MAKE) depend
        cd apps; $(MAKE) depend
        cd agent; $(MAKE) depend
        cd testing; $(MAKE) depend

nosysdepend:
        cd snmplib; $(MAKE) nosysdepend
        cd apps; $(MAKE) nosysdepend
        cd agent; $(MAKE) nosysdepend
        cd testing; $(MAKE) nosysdepend

makefileindepend:
        cd snmplib; $(MAKE) makefileindepend
        cd apps; $(MAKE) makefileindepend
        cd agent; $(MAKE) makefileindepend
        cd testing; $(MAKE) makefileindepend


clean:
        for i in $(SUBDIRS) $(TESTDIRS); do \
        ( cd $$i ; $(MAKE) clean ) ; \
        done
        rm -f EXAMPLE.conf sedscript ucd-snmp.txt

distclean: clean configclean

configclean:
        rm -f config.cache config.status config.log config.h
        rm -f Makefile snmplib/Makefile                         \
                agent/Makefile agent/mibgroup/Makefile          \
                apps/Makefile  apps/snmpnetstat/Makefile        \
                man/Makefile mibs/Makefile ov/Makefile          \
                local/Makefile testing/Makefile
        rm -f mibs/.index
        rm -f mib_module_config.h ucd-snmp-config.h     \
                agent/mibgroup/mib_module_includes.h    \
                agent/mibgroup/mib_module_inits.h       \
                agent/mibgroup/mib_module_shutdown.h    \
                agent/mibgroup/mib_module_dot_conf.h
        rm -f *.core


$(srcdir)/configure: configure.in aclocal.m4
        cd ${srcdir} && $(AUTOCONF)
        echo "lease run configure now."
        sh -c exit 2


# autoheader might not change config.h.in, so touch a stamp file.
#
$(srcdir)/config.h.in: stamp-h.in
$(srcdir)/stamp-h.in: configure.in acconfig.h
        cd ${srcdir} && LC_COLLATE=C $(AUTOHEADER)
        echo timestamp >; ${srcdir}/stamp-h.in

config.h: stamp-h
stamp-h: config.h.in config.status
        CONFIG_FILES= ./config.status
        echo timestamp >; stamp-h

touchit:
        touch configure config.h.in
        touch config.status
        touch stamp-h stamp-h.in

Makefile: Makefile.in config.status
        CONFIG_HEADERS= ./config.status

config.status: configure
        ./config.status --recheck

EXAMPLE.conf: sedscript EXAMPLE.conf.def
        $(SED) -f sedscript $(srcdir)/EXAMPLE.conf.def >; EXAMPLE.conf

TAGS:
        find $(srcdir) -name '*.[ch]' -print | etags -

version:
        @if test "x$(VERSION)" = "x"; then \
          echo "you need to supply a VERSION string."; \
          exit 2; \
        fi
        agent/mibgroup/versiontag $(VERSION) reverse

tag:
        agent/mibgroup/versiontag $(VERSION) tag

tar:
        agent/mibgroup/versiontag $(VERSION) tar

dist: version tag tar

FAQ.html:
        local/FAQ2HTML FAQ
[root@lztv ucd-snmp-4.2.6]#
应该怎么删呢?

论坛徽章:
0
8 [报告]
发表于 2004-11-08 17:06 |只看该作者

关于安装net-snmp的问题!

我再顶!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
9 [报告]
发表于 2004-11-08 18:24 |只看该作者

关于安装net-snmp的问题!

http://bbs.chinaunix.net/forum/viewtopic.php?t=430286&show_type=new
有時間頂不如多看點官網的說明
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP