Home Directory Plugins Operating Systems Linux check_available_memory

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_available_memory

Last Release Date
2017-11-17
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
Apache
Hits
2588

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Uses the value of (MemAvailable / MemTotal) from /proc/meminfo to determine current % of memory available.
This seems to make more sense than what some of the other tools I've seen are doing. All input is welcome!

From the free command man page MemAvailable is:
Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use

On EL6 vm.meminfo_legacy_layout must be set to 0.
You can set that with:
sysctl -w vm.mem-info_legacy_layout=0

Tested On:
CentOS6 - ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
CentOS7 - ruby 2.0.0p648 (2015-12-16) [x86_64-linux]