Follow by Email

Thursday, January 10, 2013

Script for monitoring Disks usage In Netapp

#!/bin/bash
FS=dumps
USAGE=`df | grep $FS | awk '{ print $4 }' | sed "s/%//"`
PERCENT=90

if [ $USAGE -gt $PERCENT ]
then
echo $FS Filesystem on NetApp has reached "$PERCENT"% capacity 
fi

No comments:

Post a Comment