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

Check memory plugin in python (uses cached memory correctly)

Bookmark and Share

Rating
0 votes
Favoured:
0
Hits
34605
Files:
FileDescription
check_mem.pyInitial version
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