Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2007 13:00:17 -0700 (MST)
From:      Brad Davis <brd@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/108126: [patch] Net-SNMP polls the wrong sysctl for the Total Memory
Message-ID:  <20070119200017.32B898FCF8@valentine.liquidneon.com>
Resent-Message-ID: <200701192020.l0JKKDsR077841@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070119200017.32B898FCF8>