LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-04-2004, 03:56 PM   #1
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Rep: Reputation: 15
Do programs to monitor disk usage exist?


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?
 
Old 02-04-2004, 04:14 PM   #2
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
check out partmon. i have no clue how to use it or anything, but it sounds like what you might be looking for:

Quote:
Checks if a partition is close to full up
 
Old 02-05-2004, 02:05 PM   #3
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Mugatu
check out partmon. i have no clue how to use it or anything, but it sounds like what you might be looking for:
Is that distribution specific? I use SuSE, and I didn't find anything like that available, nor did I find it available on the installation disc.
 
Old 02-06-2004, 09:24 AM   #4
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
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.
 
Old 02-06-2004, 11:16 AM   #5
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
try du
 
Old 02-06-2004, 11:50 AM   #6
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by czarherr
try du
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.
 
Old 02-06-2004, 12:00 PM   #7
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
just out of curiosity, what did you find?
 
Old 02-06-2004, 12:12 PM   #8
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
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".
 
Old 02-06-2004, 12:18 PM   #9
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
awww, now is that the Open Source spirit? :P
 
Old 02-06-2004, 12:25 PM   #10
Thrifty
Member
 
Registered: Jan 2004
Location: Durham, North Carolina
Distribution: SuSe
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by czarherr
awww, now is that the Open Source spirit? :P
No. The "Open Source spirit" is currently hiding under the "Don't Get Chewed Out by the Boss" spirit.
 
Old 02-06-2004, 01:04 PM   #11
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
A possible solution

Quick and dirty. Modify to fit your needs
Code:
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 01:07 PM.
 
Old 02-06-2004, 01:17 PM   #12
looseCannon
Member
 
Registered: Dec 2003
Location: Little Rock, AR
Distribution: Fedora Core 2, AIX, HP-UX, Solaris, Whitebox
Posts: 193

Rep: Reputation: 31
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.
 
Old 02-06-2004, 05:35 PM   #13
alexr186
Member
 
Registered: Jul 2003
Location: Maine, USA
Distribution: Suse 9.1 Pro
Posts: 122

Rep: Reputation: 15
there is on built in to red hat 9
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 21: Selected disk does not exist satimis Linux From Scratch 2 08-04-2005 03:35 PM
What email programs exist for any version of linux? addie Linux - Software 6 03-24-2004 06:23 PM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 07:24 PM
Getting 2 MBR Programs to co-exist br549 Linux - Newbie 0 10-27-2003 07:49 PM
Does the error exist between the monitor and chair? White Mage Linux - Software 3 10-21-2003 01:37 PM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration