[SunHELP] filesystem monitor script

sunhelp at sunhelp.org sunhelp at sunhelp.org
Mon Apr 2 13:08:58 CDT 2001


--openmail-part-3a8693cf-00000001
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
	;Creation-Date="Mon, 2 Apr 2001 13:08:57 -0500"
Content-Transfer-Encoding: 7bit

#!/bin/ksh
for i in `grep ufs /etc/vfstab | grep -v ^# | awk '{print $1}'`
do
	if [ `df -k $i | grep ^/ | awk '{print $5}' | sed 's/%//g'` -gt 75 
]; then
		echo "FS is full"
	    else
		echo "FS is OK"
	fi
done

-----Original Message-----
From: walubank [mailto:walubank at hotmail.com]
Sent: Monday, April 02, 2001 4:06 PM
To: sunhelp
Cc: walubank
Subject: [SunHELP] filesystem monitor script


Can anybody get me a monitoring script that will report when the 
filesystem 
is over 75%
Thanks
Wally
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp

--openmail-part-3a8693cf-00000001--




More information about the SunHELP mailing list