Archive for June 24th, 2010

Nagios script to monitor memory uses

Thursday, June 24th, 2010

#!/bin/bash   #Version 1.0 ####################################### #Nagios scrept to check memory status## #Commands : free -m##################### #######################################     #Status check for nagios script   STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4     #Define All the variables for commands   declare -rx SCRIPT=${0##*/} declare -rx CMD_AWK="/bin/awk" declare -rx CMD_CAT="/bin/cat" declare -rx CMD_FREE="/usr/bin/free" #####Section 1.1 :D efinning function for [...]