Linux

Check memory plugin in python (uses cached memory correctly)

Description:

Check memory plugin by parsing /proc/meminfo and taking Cached mem into consideration

Current Version

Last Release Date

June 16, 2009

Compatible With


Project Files
Project Notes
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) Add a Review
Works but got minor issues
by raptor, April 30, 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?



Good and simple
by shahirk, February 28, 2014

I tested this plugin on fedora 18. Plugin works well.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.7 (3)
Favorites
0
Views
162,563