remote systems Disk space alert script

Below mentioned code will help us to monitor remote servers disk space.

#!/bin/bash

SUBJECT="Disk Usuage Report"

EMAIL_ADDRESS=""

BODY="Please delete unwanted files ASAP."

SERVERS="list of servers"

for HOST in $SERVERS

do

ssh $HOST df -hk /appl/netcool > /tmp/out;

output=$(cat /tmp/out grep -i '/appl' awk '{ print $5 }' cut -d'%' -f1)

if [ $output -ge 90 ];

then

echo "Running out of space \"/appl/netcool\" on Server" $HOST "Usage:" $output%"$BODY" mailx -s "$SUBJECT" "$EMAIL_ADDRESS"

fi

done