Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 10:40:48 -0600
From:      "Andras Kende" <andras@kende.com>
To:        "'Shawn Guillemette'" <sgill@metrocast.net>, <questions@freebsd.org>
Subject:   RE: Mrtg question
Message-ID:  <20050111164036.2EA1943D3F@mx1.FreeBSD.org>
In-Reply-To: <41E3E53A.20509@metrocast.net>

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


-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Shawn Guillemette
Sent: Tuesday, January 11, 2005 8:40 AM
To: questions@freebsd.org
Subject: Mrtg question

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@loc
alhost
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

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


Hello Shawn,

Try these OID:

ucd/net - Memory - Buffers:
.1.3.6.1.4.1.2021.4.14.0

ucd/net - Memory - Cache:
.1.3.6.1.4.1.2021.4.15.0

ucd/net - Memory - Free:
.1.3.6.1.4.1.2021.4.6.0

http://www.kende.com/cacti/graph.php?local_graph_id=14&rra_id=all


Andras Kende
http://www.kende.com





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