From owner-freebsd-questions@FreeBSD.ORG Tue Jan 11 14:40:11 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE7D316A4CF for ; Tue, 11 Jan 2005 14:40:11 +0000 (GMT) Received: from metrocastcablevision.com (mail.metrocastcablevision.com [65.175.128.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0CA943D45 for ; Tue, 11 Jan 2005 14:40:10 +0000 (GMT) (envelope-from sgill@metrocast.net) Received: from [192.168.6.11] [65.175.128.10] by metrocastcablevision.com with ESMTP (SMTPD32-8.05) id A4D71AC80146; Tue, 11 Jan 2005 09:38:15 -0500 Message-ID: <41E3E53A.20509@metrocast.net> Date: Tue, 11 Jan 2005 09:39:54 -0500 From: Shawn Guillemette User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Mrtg question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 14:40:11 -0000 Im using net-snmp-5.2.1 with mrtg on a Alpha CPU. I want to monitor my memorry usage. However when I add the following to the mrtg.cfg file I find that SNMPD shuts down and I get these errors in the logs. I add this to mrtg.cfg LoadMIBs: /usr/local/share/snmp/mibs/UCD-SNMP-MIB.txt ### Memmory Target[freemem]:.1.3.6.1.4.1.2021.4.11.0&.1.3.6.1.4.1.2021.4.11.0:public@localhost Options[freemem]: nopercent,growright,gauge,noinfo Title[freemem]: Free Memory PageTop[freemem]:

Free Memory

MaxBytes[freemem]: 1000000 kMG[freemem]: k,M,G,T,P,X YLegend[freemem]: bytes ShortLegend[freemem]: bytes LegendI[freemem]: Free Memory: LegendO[freemem]: Legend1[freemem]: Free memory, not including swap, in bytes I get this in the snmpd.log file kvm_openfiles: Permission denied kvm_openfiles: /dev/mem: Permission denied I do see the file in /dev/mem ls -la mem crw-r----- 1 root kmem 2, 0 Jan 6 17:45 mem