pkgsrc-Bugs archive

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

pkg/47515: net-snmp- does not report memory informations on amd64

>Number:         47515
>Category:       pkg
>Synopsis:       net-snmp- does not report memory informations on 
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 31 08:35:00 +0000 2013
>Originator:     Nils Ratusznik
>Release:        NetBSD-6.0
When using net-snmp- with NetBSD-6.0 amd64 (GENERIC, XEN3_DOMU or 
XEN3_DOM0), it is not possible to collect memory informations (to send them to 
cacti, for example). When the memory OIDs are polled, net-snmpd throws the 
following error message in /var/log/messages : 
sysctl vm.bufmem failed (errno 12)

Install NetBSD-6.0 amd64 standalone, or as a dom0/domU for Xen.
Install net-snmp-, using source or binary package.
Configure net-snmp (basic config with snmp v1 is enough for this test).
Run the following (modified) command : "snmpwalk -Os -c <your_community> -v 1 
<your_host> .".
Watch /var/log/messages and find the error snmpd just sent.

Install the same setup but with NetBSD-6.0 i386 (again, Xen or not) and run the 
same commands. Notice the difference in the informations about memory.
On the "netbsd-users" mailing list, a thread named "snmpd: sysctl vm.bufmem 
failed (errno 12)" 
( indicates 
a fix for this 

After applying it and rebuilding net-snmp, the memory informations are 
available. The change is just replacing "unsigned int    bufspace;" with 
"unsigned long int    bufspace;" in the already existing patch-ah file.

Home | Main Index | Thread Index | Old Index