Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Compatible with Linux including RHEL 7+ This plugin is loosely inspired by check_mem v1.1 from Lukasz Gogolin http://localhost/directory/Plugins/System-Metrics/Memory/check_mem-2Esh/details I did a code rewrite and added a check of "free" version, because since procps-ng 3.3.0+ (RHEL 7+) check_mem.sh doesn't work anymore as it is (buff/cache column) See Github or website for last version
Current Version
1.1
Last Release Date
2015-07-20
Owner
Denis GERMAIN
Website
https://blog.zwindler.fr/2015/07/16/plugin-check_mem_ng-sh-compatible-rhel-7/
Download URL
https://github.com/zwindler/check_mem_ng
License
MIT
Compatible With
Plugin check_mem_ng.sh
LICENSE
check_mem_ng.sh 1.1
Usage: * check_mem_ng.sh [-w <warnlevel>] [-c <critlevel>] [-v] [-l] - checks local host available memory - warnlevel and critlevel is percentage value without % - defaults being respectively 80 et 90 - add -v for verbose (debuging purpose) - add -l for legacy perfdata mode (or change LEGACY_PERFDATA variable in script) * check_mem_ng.sh -V - prints version * check_mem_ng.sh -h - prints help (this message)
Similarities/differences between check_mem.sh: - Both don't need much to run: only bash, free and awk - Compatible with "free" binary from either procps AND procps-ng (newer) whereas check_mem.sh is not - Same basic syntax, you can exchange both scripts without changing your Nagios(r) configuration much - You can choose to keep perfdata identical to check_mem.sh OR display a modern graph with min/max bounds and warning/critical lines - Added defaults to warn and critical, and help/version/verbose/legacy_perfdata flags
Output: ./check_mem_ng.sh OK: Memory below thresholds. Total: 7984 MB - Used: 288 MB - 3% used. | Memory_Used=302661632;6698119987;7535384985;0;8372649984 ./check_mem_ng.sh -w 70 -c 85 OK: Memory below thresholds. Total: 7984 MB - Used: 288 MB - 3% used. | Memory_Used=302796800;5860854988;7116752486;0;8372649984 ./check_mem_ng.sh -w 70 -c 85 -l OK: Memory below thresholds. Total: 7984 MB - Used: 289 MB - 3% used. | TOTAL=8372649984;;;; USED=303390720;;;; CACHE=7834243072;;;; BUFFER=613666816;;;;
check_mem_ng.sh needs bc which is not installed by default on Debian LEGACY_PERFDATA prints buffer and cache separately. I guess that is for backwards compatibility with check_mem.sh
I just today ran into the problem you noted about procps-ng and the buff/cache column and subsequently found this new version! Working great! Thank you!!
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!