In this article, I am going to provide you bash script which helps you to set an email alert for the disk when your storage is full. This script will keep alerting you when your disk reaches to a threshold level or value.
- If threshold value 70 then send an email alert
This is complete automated script which will send you an email notification when above conditions are true.
Make sure you have a mail server configured on your server. if not then follow below link which helps you to configure a mail server.