Coding isn't a strong point of mine but I've got a basic backup script that I use and while it gets the job done it still requires me to manually audit and check the server disk space and manually create additional storage by removing archived data as needed. In an effort to streamline things a bit more, I'd like to simply add a little bit of code that will check the disk space of the backup server, and say, at 80% (or 90%) send an email to my address that pipes to my phone for urgent action stuff.
Thing is, I'm not quite sure where to begin. The only similar thing I have in operation at this time is a script that emails me to inform me when someone logs into the server via SSH but I'm not sure where I'd begin with slicing that up to piece together what I want for the disk space check.
Anyone care to give this a shot?
Thing is, I'm not quite sure where to begin. The only similar thing I have in operation at this time is a script that emails me to inform me when someone logs into the server via SSH but I'm not sure where I'd begin with slicing that up to piece together what I want for the disk space check.
Anyone care to give this a shot?