Thanks Sven for your help,
but I still have problems though :(
In fact the command "ldd" gives me this result:
ldd /usr/sbin/snmpd
libnetsnmpagent.so.5 => /usr/local/lib/libnetsnmpagent.so.5 (0x40020000)
libnetsnmpmibs.so.5 => /usr/local/lib/libnetsnmpmibs.so.5 (0x40035000)
libnetsnmphelpers.so.5 => /usr/local/lib/libnetsnmphelpers.so.5 (0x400dd000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x400ec000)
libnetsnmp.so.5 => /usr/local/lib/libnetsnmp.so.5 (0x400f4000)
libdl.so.2 => /lib/libdl.so.2 (0x40160000)
librpm-4.3.so => /usr/lib/librpm-4.3.so (0x40164000)
librpmdb-4.3.so => /usr/lib/librpmdb-4.3.so (0x401c2000)
libselinux.so.1 => /lib/libselinux.so.1 (0x402b3000)
librpmio-4.3.so => /usr/lib/librpmio-4.3.so (0x402c3000)
libbeecrypt.so.6 => /usr/lib/libbeecrypt.so.6 (0x402f7000)
librt.so.1 => /lib/i686/librt.so.1 (0x40315000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40328000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x4037b000)
libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40383000)
libz.so.1 => /usr/lib/libz.so.1 (0x40392000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x403a3000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x40494000)
libm.so.6 => /lib/i686/libm.so.6 (0x404a4000)
libc.so.6 => /lib/i686/libc.so.6 (0x404c8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x405e3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00738000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x405f8000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x4060d000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x40675000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x40679000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4069b000)
********************************************************************************************************
I tried compiling this way:
./configure --with-default-snmp-version=2 --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-sys-contact="[EMAIL PROTECTED]" --with-sys-location="Juramento 2017, 4th 'A' - Buenos Aires - Argentina" --with-mib-modules="mibII snmpv3mibs ucd_snmp agent_mibs agentx notification target utilities host disman/event-mib smux mibII/mta_sendmail misc/ipfwacc tunnel examples/ucdDemoPublic examples/example examples/notification" --with-perl-modules
907 ./configure --with-default-snmp-version=2 --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-sys-contact="[EMAIL PROTECTED]" --with-sys-location="Juramento 2017, 4th 'A' - Buenos Aires - Argentina" --with-mib-modules="mibII snmpv3mibs ucd_snmp agent_mibs agentx notification target utilities host disman/event-mib smux mibII/mta_sendmail misc/ipfwacc tunnel examples/ucdDemoPublic examples/example examples/notification" --with-perl-modules
make
make test
make install
and when recompiling, using : "make clean" or even better "make depclean"
********************************************************************************
Just one thing more, this began to happen just one day , and never worked anymore, without even doing nothing to change the configuration (apart from adding some logging or changing something to the snmptrap configuration or to the snmptt package aiming on passive snmptraps to work with Nagios which I did not achieve yet )or try to recompile the package again and then resulting in a bad operation from my part.
*************************************************************
/usr/sbin/snmpd -v
NET-SNMP version: 5.0.9
Web: http://www.net-snmp.org/
Email: [EMAIL PROTECTED]
*************************************************************
If anyone has more ideas, they are going to be more than welcome, of course.
Regards
Jose Dragone
==========================================================================================
Hi,
[EMAIL PROTECTED] wrote:
> Could anyone tell me what this means?
>
>
> service snmpd start
> Starting snmpd: /usr/sbin/snmpd: error while loading shared libraries:
> /usr/sbin/snmpd: undefined symbol: netsnmp_daemonize
> [FAILED]
> Thanks in advance.
>
> Jose
It means that the binary is missing something (in most cases a shard
library). This can happen if you installed snmp by a binary package and
forgot to solve some dependencies (or something like this)
You should run "ldd /usr/sbin/snmpd" and should see something like this:
[EMAIL PROTECTED]:~$ ldd /usr/sbin/snmpd
libnetsnmpagent.so.5 => /usr/lib/libnetsnmpagent.so.5
(0x40021000)
libnetsnmpmibs.so.5 => /usr/lib/libnetsnmpmibs.so.5 (0x4003a000)
libnetsnmphelpers.so.5 => /usr/lib/libnetsnmphelpers.so.5
(0x4014a000)
libwrap.so.0 => /lib/libwrap.so.0 (0x4015f000)
libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0x40168000)
libsensors.so.3 => /usr/lib/libsensors.so.3 (0x40203000)
libm.so.6 => /lib/tls/libm.so.6 (0x4022c000)
libdl.so.2 => /lib/tls/libdl.so.2 (0x4024f000)
libc.so.6 => /lib/tls/libc.so.6 (0x40253000)
libnsl.so.1 => /lib/tls/libnsl.so.1 (0x4038e000)
libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7
(0x403a3000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
If there is a line in the output which looks like
libwrap.so.0 => not found
than you've found the problem and you can install the missing library
Regards
Sven Herzing
|