Sometimes proper server monitoring is just not worth the effort. However it can still be useful to know when a disk on your server starts to become full.
The following Bash script is perfect for this. All you need is the Simplepush app installed on your Android or iOS device in order to receive the alerts. Since full disk alerts shouldn’t happen too often, the free version of the Simplepush app should be good enough.
YourKey with your Simplepush key that you receive immediately after installing the Simplepush app.
You can also change the threshold to adjust the percentage of space that needs to be used up before an alert is triggered.
You can also find the bash script here: https://gist.github.com/simplepush/af1b9c87e9203664fbd40b7bb300175a.
You can make this script run once a day by creating a cronjob.
crontab -e and then append the following line where you adjust the path to the disk monitoring script:
Now you will get a notification once a day for any disk that is at least 90% full.Share on: