Hello, please sign in or register
You are here: Home

Reporting Low disk space

Reporting low disk space on a linux system. Requires the `mail` setup.

Add this line to crontab, replace your email address with the following

10 7 * * * ( df | grep [7-9].% ) && df | mail -s "Low space" name@addrew.com

 

Comments

not a robot
Hi hon, I am stuck with a slave problem and was googling it ;) tadam suddenly saw a familiar title :) Perplexed! A question: will it report 100%? I replaced "grep [7-9]" with "grep [7-10]". What do you think? Hope you recognised me ;)
Created 26/05/09
drew
Um, no 7-10 wont work, try (( df | grep [7-9].% ) || ( df | grep 100% ) ). OT, your welcome.
Created 27/05/09
Title*
Comment

Prove you are not a robot

To prove you are not a robot, please type in the six character code you see in the picture below
Security confirmation codeI can't see this!
Contact
Name*
Email never shown*
Home Page

Author

Andrew Dodson
Since:Feb 2007

Comment | flag

Categories

Bookmark and Share