Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 09:39:54 -0500
From:      Shawn Guillemette <sgill@metrocast.net>
To:        questions@freebsd.org
Subject:   Mrtg question
Message-ID:  <41E3E53A.20509@metrocast.net>

next in thread | raw e-mail | index | archive | help
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]: <H1> Free Memory </H1>
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











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