Shell script to monitor or watch the disk space and send an email alert if the (free avilable) percentage of space is >= 80%
Create a file, say, /root/serverspace.sh by running the command
Code:
nano /root/loadmonitor.sh
and add the bellow script
[php]#!/bin/sh
# Shell script to monitor or watch the disk space
# It will send an email to $ADMIN, if the (free avilable) percentage
# of space is >= 80%
# -------------------------------------------------------------------------