pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

net-snmp-5.3.1nb2 works in i386 but sometimes fails in amd64



Hello:

I have a lot of problems trying to work together net-snmp and
freeradius in a production server NetBSD-3.1/amd64 using
pkgsrc-2006Q4.tar.gz

Trying to understand the problem, I did some hard tests to
net-snmp alone. I discovered a fail if I try to do a snmpwalk
to the complete tree using the network, at the end snmpd dies:

server1# snmpwalk -v 1 -c public server2 .iso > /tmp/result
Timeout: No Response from localhost

and the file /var/log/messages of server2
Mar  2 11:55:51 minerva snmpd[10849]: Connection from UDP: [192.168.2.254]:56108
Mar  2 11:55:51 minerva last message repeated 272 times
Mar 2 11:55:51 minerva snmpd[10849]: kvm_read(*, 26db840, 0x7f7fffffe5f0, 528) = -1: kvm_read: Bad address
Mar  2 11:55:51 minerva snmpd[10849]: Connection from UDP: [192.168.2.254]:56108
Mar  2 11:55:51 minerva last message repeated 741 times
Mar  2 11:56:28 minerva snmpd[23640]: NET-SNMP version 5.3.1
(this last line is a /etc/rc.d/snmpd start by hand)

Exactly the same result if I snmpwalk with version 2c
and the same result if I snmpwalk from localhost.

It works fine if I do a short snmpwalk, i.e.
snmpwalk -v 1 -c public server2 system

Then, at home (i386/NetBSD-3.1/pkgsrc-2006Q4.tar.gz) I did
the same tests with no problems... no error messages.

Today, and trying to understand, in my lab server and two hard disks,
I did a new instalation of NetBSD-3.1/i386/pkgsrc-2006Q4.tar.gz
in the first disk. I did a make package to net-snmp. I did a simple
configuration to snmpd.conf
cp /usr/pkg/share/examples/net-snmp/EXAMPLE.conf /usr/pkg/etc/snmp/snmpd.conf
and customizing the following two lines
com2sec local     localhost       private
com2sec mynetwork 192.168.2.0/24   public

host86# snmpwalk -v 1 -c private localhost .iso > /tmp/000
host86# tail /var/log/messages
Mar  3 08:21:56 host86 snmpd[5992]: Creating directory: /var/net-snmp
Mar  3 08:21:56 host86 snmpd[5992]: NET-SNMP version 5.3.1
Mar  3 08:24:34 host86 snmpd[5992]: Connection from UDP: [127.0.0.1]:65518
Mar  3 08:24:35 host86 last message repeated 2488 times
host86# wc /tmp/000
    2489   11054  189105 /tmp/000

I can see it works with 64 bits hardware and NetBSD-3.1/i386

Then, I shuted down the server, I replaced the hard disk and I did
a new installation NetBSD-3.1/amd64/pkgsrc-2006Q4.tar.gz,
cd /usr/pkgsrc/net/net-snmp, make package, etc.
the same simple configuration and this is the result:

host64# snmpwalk -v 1 -c private localhost .iso > /tmp/000
snmpwalk: Command not found.
host64# rehash
host64# !sn
snmpwalk -v 1 -c private localhost .iso > /tmp/000
Timeout: No Response from localhost
host64# tail /var/log/messages
Mar  3 09:18:22 host64 snmpd[27356]: Creating directory: /var/net-snmp
Mar  3 09:18:22 host64 snmpd[27356]: NET-SNMP version 5.3.1
Mar  3 09:19:11 host64 snmpd[27356]: Connection from UDP: [127.0.0.1]:65532
Mar  3 09:19:11 host64 last message repeated 296 times
Mar 3 09:19:11 host64 snmpd[27356]: kvm_read(*, 283aa50, 0x7f7fffffe5f0, 528) = -1: kvm_read: Bad address
Mar  3 09:19:11 host64 snmpd[27356]: Connection from UDP: [127.0.0.1]:65532
Mar  3 09:19:11 host64 last message repeated 5 times
Mar  3 09:19:11 host64 snmpd[27356]: truncating unsigned value to 32 bits (11)
Mar  3 09:19:11 host64 snmpd[27356]: Connection from UDP: [127.0.0.1]:65532
Mar  3 09:19:11 host64 last message repeated 668 times
host64# wc /tmp/000
     971    4062   54594 /tmp/000

Question: Does somebody can help me to understand what is wrong here?

Thanks in advance
Heron Gallegos
Saltillo Coahuila Mexico




Home | Main Index | Thread Index | Old Index