SNMP broken just for NetMRG

dbeckercpi

05-05-2005 17:40:34

Hi,
I have a NetMRG installation that was working fine for months, then one day everything broke. When the gatherer runs, every SNMP packet it sends out has an empty community string, even though I've verified that the DB holds the correct values. snmpget on the same machines works fine, so I don't think it's a library issue. I'm on version 0.18.2. Has anyone else seen anything like this?

Derek

silfreed

05-05-2005 19:10:52

Are you using FC3? Have you upgraded net-snmp recently? If yes to both of these, then downgrade your net-snmp for now; they updated to a new version of net-snmp that our RPM isn't compiled against and it will be broken now.
If not any of the above, can you post what your net-snmp version is and an 'ldd netmrg-gatherer'?

-Doug

dbeckercpi

06-05-2005 13:18:26

Well, I [ie76d47393a]am[/ie76d47393a] on FC3 and I [ie76d47393a]did[/ie76d47393a] upgrade net-snmp. I tried downgrading it to 5.1.2 (the base that comes with FC3) but that didn't fix the problem.

Here's the output from LDD

[dbecker@lxdb1 ~]$ ldd /usr/bin/netmrg-gatherer
libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0x00101000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00ce5000)
libmysqlclient.so.10 => /usr/lib/libmysqlclient.so.10 (0x006d1000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x0044b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x009af000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x007d6000)
libz.so.1 => /usr/lib/libz.so.1 (0x007aa000)
libdl.so.2 => /lib/libdl.so.2 (0x006cb000)
libm.so.6 => /lib/tls/libm.so.6 (0x006a6000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a7c000)
libc.so.6 => /lib/tls/libc.so.6 (0x0057a000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00dcf000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00c06000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00bde000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00be3000)
libresolv.so.2 => /lib/libresolv.so.2 (0x008d9000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x064ed000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00ca5000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x00542000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x0054f000)
/lib/ld-linux.so.2 (0x00560000)

silfreed

06-05-2005 13:30:00

Did you get both net-snmp and net-snmp-libs? You can check everything by doing
[code143a1e0d563]rpm -qa | grep net-snmp[/code143a1e0d563]

-Doug

silfreed

06-05-2005 13:32:13

BTW, your topic notification emails are bouncing. You might want to check your email address in your preferences.

-Doug

dbeckercpi

06-05-2005 13:44:22

OK, I just did it again (removed RPMs, re-added them) and this time it's working. I have no idea what I did wrong, but it caps off a really stellar week here at work (

I don't know why my email would bounce, I verified it and it should be fine (.

I was thinking that it had to be a library issue, but when it didn't work after the first downgrade I thought I must have hosed something else.

Thanks for the help!

Derek

iggy78

10-04-2006 11:31:41

I have a similar problem with my install
i have compiled the last net-snmp on my ubuntu

on the netmrg tmp directory i do a ./configure --with-snmp-include-dir=/usr/local/include/net-snmp

make and make install ok

and when i launch netmrg-gatherer i have this error
[quote29ef1002e8]
netmrg-gatherer error while loading shared libraries libnetsnmp.so.8 cannot open shared object file No such file or directory
[/quote29ef1002e8]

when i do a ldd on the netmrg-gatherer, i have a libnetsnmp.so.8 not found, and with the /sbin/ldconfig -p | grep libnetsnmp command i have a libnetsnmp.so.5 (libc6) => /usr/lib/libnetsnmp.so.5

i don't know what mine the .# (hardcore technic consist to rename the .8 file to .5 shock )

[i29ef1002e8][b29ef1002e8]EDIT[/b29ef1002e8] I have resolved the problem, i have added the /usr/local/lib in the /etc/ld.so.conf file and run the ldconfig program and now the netmrg-gatherer run fine[/i29ef1002e8]