This bit of bash script tells me when the swap file on my servers exceeds a set maximum. I use it to let me know when storage becomes an issue on my site: #!/bin/bash # Notify me one time if my swap is over MAXSWAP and log the # swap usage as well in SWAPLOG. [...]