ports/108126: [patch] Net-SNMP polls the wrong sysctl for the Total Memory
Brad Davis
brd at FreeBSD.org
Fri Jan 19 20:20:14 UTC 2007
>Number: 108126
>Category: ports
>Synopsis: [patch] Net-SNMP polls the wrong sysctl for the Total Memory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 19 20:20:13 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Brad Davis
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sat Sep 30 17:05:24 MDT 2006 /usr/obj/usr/src/sys/GENERIC i386
>Description:
Net-SNMP polls the wrong SYSCTL, HW_USERMEM instead of HW_PHYSMEM
>How-To-Repeat:
>Fix:
Patch: files/patch-agent::mibgroup::ucd-snmp::memory_freebsd2.c
--- agent/mibgroup/ucd-snmp/memory_freebsd2.c.org Wed Jan 17 16:10:03 2007
+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Wed Jan 17 16:10:39 2007
@@ -260,7 +260,7 @@
u_long phys_mem;
size_t phys_mem_size = sizeof(phys_mem);
- int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
+ int phys_mem_mib[] = { CTL_HW, HW_PHYSMEM };
#ifdef BUFSPACE_SYMBOL
long bufspace;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list