Subject: Re: net-snmp-5.3.1nb2 works in i386 but sometimes fails in amd64
To: None <pkgsrc-users@NetBSD.org>
From: Heron Gallegos <gallegos@csxxi.net.mx>
List: pkgsrc-users
Date: 03/10/2007 12:49:33
Obstinity helps me :)
With this change in the Makefile, I can do a snmpwalk of the entire tree
in versions v1 and v2c, local and remote:
(using NetBSD-3.1/amd64/pkgsrc.tar.gz 2007 03 03/net-snmp-5.4)
net/net-snmp/Makefile:
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --with-mib-modules="smux host"
#CONFIGURE_ARGS+= --with-mib-modules="smux host ucd-snmp/diskio"
.else
CONFIGURE_ARGS+= --with-mib-modules="smux host"
.endif
Also, if I try work together freeradius-1.1.4 (with snmp option) and
net-snmp-5.4, the log file shows like all is all right:
/var/log/messages
host64 snmpd[508]: NET-SNMP version 5.4
host64 snmpd[508]: [smux_accept] accepted fd 11 from 127.0.0.1:65534
host64 snmpd[508]: accepted smux peer: oid SNMPv2-SMI::enterprises.3317.1.3.1, descr radiusd
But snmpd dies (no die message) when I
host64# snmpwalk -v 2c -c private localhost radius
host64#
host64 snmpd[508]: Connection from UDP: [127.0.0.1]:65531
host64 snmpd[508]: [smux_snmp_process] peek failed: Resource temporarily unavailable
host64 snmpd[508]: peer disconnected: SNMPv2-SMI::enterprises.3317.1.3.1
host64 snmpd[508]: select: Bad file descriptor
This test works fine when I change disks. My second HD is identical except
the OS is i386 (i.e. all software versions and conf files are equal). No
need to remove the module ucd-snmp/diskio in net/net-snmp/Makefile.
I will install 4beta2 200703080002Z, I hope a better luck.
Heron Gallegos
Saltillo Coahuila Mexico