Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I guess the title says it all. Does there exist software that can monitor disk usage across the varied partitions of a computer and notify you if disk space usage has reached a certain threshold? Say, could it be set up so that if 90% of the space was used up on a hard drive, that a message informing me of that could be automatically E-Mailed to me?
actually it does look like it is specific to Mandrake; my Slackware box didn't have it. df will tell you how much free space you have--maybe you can set it up to automatically run or something. i wish i could help you more but i'm still learning myself.
No good. The du command will tell me how much of the drive is being used, but I have to do it manually. I'm looking for something to do automatic alerts and such.
But it's a moot point now. I've found something that should do this for me. Thanks for your help folks.
Originally posted by Mugatu just out of curiosity, what did you find?
Well, it's a script my boss wrote. I'd show it to you, but it's not really my code to share, and he might not be comfortable with me putting that information out there. I don't know what kind of potentially sensitive information a saavy computer whiz reading this board could pluck out of it. I'm probably being paranoid, but I prefer to think of it as "better safe than sorry".
for fs in `df|tail +2|awk '{print $6}'`
do
let percentUsed=`df $fs|tail +2|awk '{print $5}'|cut -f1 -d'%'`
if [ $percentUsed -gt 89 ]
then
echo $fs is getting full -- it\\'s $percentUsed used
fi
done
That will grab file system that is over 89 percent full and simply tell you it is getting full. You could add additional conditions to it pretty easily. You could pretty easily have this generate an email to send out to alert you.
Stick this in a script and have it run in a cron job every hour, or sooner if you like.
Hmmm. Might have to add this to my profile...
Last edited by looseCannon; 02-06-2004 at 12:07 PM.
Also, another option is to head out to sourceforge and look for LRRD or Munin. It's a little bit of work to install but it tracks a butt load of things about your server. Disk usage, disk space, network traffic, swapping, apache processes, and a bunch of others. Optionally you can have it throw alerts to nagios.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.