[mrtg] Re: Monitoring Redhat Linux Memory
Steve Shipway
s.shipway at auckland.ac.nz
Mon Dec 12 22:32:01 MET 2005
> Does anyone have any idea how to monitor the correct mem
> available using SNMP? [on linux]
I know an ugly way, if you can't use a non-SNMP agent like NRPE to do it.
Linux hands over the *useful* memory statistics in /proc/meminfo. You can
write a perl script to parse out the appropriate lines, and then use the UCD
snmpd extensions to call the script by adding to the /etc/snmp/snmpd.conf a
line like
exec memory-raw /bin/grep MemFree /proc/meminfo
exec memory /usr/local/bin/mymemoryscript
The pull them out on OID enterprises.ucdavis.extTable.extEntry.extOutput
Steve
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list