#! /bin/ksh 
USAGE="usage:var_cap" 
# This script checks for the 
# current capacity of /var and alerts specified personnel 
# if the capacity is equal to or greater than 90%
# This was written to run against HP Unix
# Copyright 2003, All Rights Reserved, Reed-Matthews, Inc.

check_it=$(bdf /var | awk '{print $5}' | grep -v used |
sed s/%//)


if (( $check_it >= 90 ))
then 
	
echo "/var is currently at $check_it % of capacity.  Please give it a look 
see. /var holds the sqlnet log files and Oracle Database Code" | mailx -s "Check /var." barb@somecompany.com  

fi 


