Mrtg question

Shawn Guillemette sgill at metrocast.net
Tue Jan 11 06:40:11 PST 2005


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











More information about the freebsd-questions mailing list