Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check free ram

Current Version
1.0
Last Release Date
2009-12-15
Compatible With
  • Nagios 2.x
Hits
105166
Files:
FileDescription
check_ram.shcheck_ram.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A simple shell script for nagios to check free memory on a target system
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)
bysyzygy, September 9, 2012
1 of 1 people found this review helpful
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...