pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/47515: net-snmp-5.6.1.1nb5 does not report memory informations on amd64
>Number: 47515
>Category: pkg
>Synopsis: net-snmp-5.6.1.1nb5 does not report memory informations on
>amd64
>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
>Organization:
>Environment:
>Description:
When using net-snmp-5.6.1.1nb5 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)
>How-To-Repeat:
Install NetBSD-6.0 amd64 standalone, or as a dom0/domU for Xen.
Install net-snmp-5.6.1.1nb5, 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> .1.3.6.1.4.1.2021.4".
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.
>Fix:
On the "netbsd-users" mailing list, a thread named "snmpd: sysctl vm.bufmem
failed (errno 12)"
(http://mail-index.netbsd.org/netbsd-users/2013/01/02/msg012258.html) indicates
a fix for this
(http://mail-index.netbsd.org/netbsd-users/2013/01/02/msg012263.html).
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