Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check memory plugin in python (uses cached memory correctly)
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!
This plugin is written in Python (no 'special' modules needed, just optparse and sys) and parses the output of /proc/meminfo. Unlike some other plugins that check memory, this one also takes cached memory into consideration and adds that to the available FreeMem. This plugin doesn't take Swap memory into consideration. There are other plugins that do that and IMHO if the hosts starts to swap, there's already a problem.
This plugin correctly reports Nagios plugin check results. For a quick description use the plugin from the commandline: ./check_mem.py --help
This plugin correctly reports Nagios plugin check results. For a quick description use the plugin from the commandline: ./check_mem.py --help
Reviews (2)
byraptor, April 13, 2015
if int(options.crit_threshold) >= int(options.warn_threshold):
print "UNKNOWN: Critical percentage can't be equal to or bigger than warning percentage."
Should it not be the opposite?
print "UNKNOWN: Critical percentage can't be equal to or bigger than warning percentage."
Should it not be the opposite?
byshahirk, February 11, 2014
I tested this plugin on fedora 18. Plugin works well.