Linux

check free ram

Description:

A simple shell script for nagios to check free memory on a target system

Current Version

1.0

Last Release Date

2009-12-15

Compatible With

  • Nagios 2.x

Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
A simple shell script for nagios to check free memory on a target system The plugin was designed to do active checks using check_by_ssh to check clients like a firewall. Tested with smoothwall.
Reviews (1) Add a Review
Simple and effective, but maybe misleading?
by syzygy, September 30, 2012
I'm using this plug-in for both my local machine and remote servers.

However, 'free' memory, when returned using the 'free' command, can be misleading, since memory is available at the moment it's required, but allocated for caching the rest of the time.

More information is here: http://www.linuxatemyram.com

Might I suggest the -/+ buffers/cache value is used?

free=`free | grep Mem | sed -r 's/ +/ /g' | cut -d -f 4`

to

free=`free | grep "buffers/cache" | sed -r 's/ +/ /g' | cut -d -f 4`

gives a better reading of 'available' memory...
1 of 1 found this review helpful.
Helpful? Yes 1 No 0
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
0
Views
112,106