I created a .sh file to monitor 2 file paths and send the disksize to me. It runs and I don't get a mail. And the filesystems are >90%
#!/bin/bash
used=$(df -Ph | grep 'location1' | awk {'print $5'})
used1=$(df -Ph | grep '/location2' | awk {'print $5'})
max=80%
if [ ${used%?} -gt ${max%?} ]; then mail -s 'Disk space alert' [email protected];[email protected] << EOF
The Mount Point "location1" on $(hostname) has used $used at $(date);
if [ ${use1%?} -gt ${max%?} ]; then mail -s 'Disk space alert' [email protected]; [email protected] << EOF
The Mount Point "location2" on $(hostname) has used $used1 at $(date);
EOF
fi
Thanks All, I have been able to figure it out.