#!/usr/bin/env bash # Origninal from http://blog.vergiss-blackjack.de/wp-uploads/2010/04/check_memory.txt # Modified by Jon Schipp # Nagios plugin to check memory consumption # Excludes Swap and Caches so only the real memory consumption is considered # Nagios Exit Codes OK=0 WARNING=1 CRITICAL=2 UNKNOWN=3 # set default values for the thresholds WARN=90 CRIT=95 usage() { cat <