[mrtg] Re: Monitoring Redhat Linux Memory

Max btmanmeh at verizon.net
Mon Dec 12 23:12:57 MET 2005


Max wrote:
> Steve Shipway wrote:
> 
>>>Does anyone have any idea how to monitor the correct mem 
>>>available using SNMP? [on linux]
> 
> 
> Check out this site. I've been using this plugin with my Nagios instance 
> over SNMP. It seems to work great. It gets total RAM and swap usage:
> 
> http://www.manubulon.com/nagios/snmp_mem.html
 >

Sorry, I clicked send before I was done writing, too many windows open...

That plugin is meant for Nagios, however all the specific SNMP 
infomation is contained from within that plugin as well. You might not 
be able to use it directly for your application, but I think you can get 
what you want from reading the script and pulling out the OID's that you 
need. For instance:

# Net-snmp memory

my $nets_ram_free       = "1.3.6.1.4.1.2021.4.6.0";  # Real memory free
my $nets_ram_total      = "1.3.6.1.4.1.2021.4.5.0";  # Real memory total
my $nets_swap_free      = "1.3.6.1.4.1.2021.4.4.0";  # swap memory free
my $nets_swap_total     = "1.3.6.1.4.1.2021.4.3.0";  # Swap memory total


Max

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