#!/bin/bash# -------------------------------------------------------------------------------# Filename: check_mem.sh# Revision: 1.1# Date: 2009/02/10# Author: Larkin# Email: Larkin@gmail.com# Website: www.csdn.com# Description: Plugin to monitor the memory of the system# Notes: This plugin uses the "" command# -------------------------------------------------------------------------------# Copyright: 2009 (c) Larkin# License: GPL## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version 2# of the License, or (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## you should have received a copy of the GNU General Public License# along with this program (or with Nagios);## Credits go to Ethan Galstad for coding Nagios# If any changes are made to this script, please mail me a copy of the changes# -------------------------------------------------------------------------------#Version 1.0#The first one , can monitor the system memory#Version 1.1#Modify the method of the script ,more fast