Home Directory Plugins Operating Systems Linux Check memory plugin in python (uses cached memory correctly)

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

Directory Tree

Check memory plugin in python (uses cached memory correctly)

Rating
3 votes
Favoured:
0
Hits
162503
Files:
FileDescription
check_mem.pyInitial version
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!
Check memory plugin by parsing /proc/meminfo and taking Cached mem into consideration
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
Reviews (2)
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?
byshahirk, February 11, 2014
I tested this plugin on fedora 18. Plugin works well.