5
3
I'm looking for a simple way of getting an email alert whenever the diskspace of a server gets above X % or has less than X Mb free.
I don't need anything too special, I don't need graphs or anything like that, just an email to let me know when my server is about to run out of space so I can run cleanup jobs. Right now I'm looking into setting up cleanup jobs with Jenkins, I just need something in the mean time to make sure the server keeps running.
This is for an Ubuntu server.
It's pretty easy to write your own simple shell script involving df, and mailx commands with crontab to schedule them. – mdpc – 2013-02-12T21:49:27.960