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