Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Notification When Drive Reaches Critical Capacity?
geesh
post May 28 2004, 03:22 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 28-May 04
Member No.: 3,054



Does anyone have suggestions on how I would go about getting Linux to let me know when a drive is nearing capacity? Such as when the drive is 95% full.

The only way I thought about doing it would be to set a crontab to try to awk out the percentage area of a 'df' command and then shoot me an email if it reported higher than 94%. I'm sure there's a better way to do do this but I haven't found one as of yet.

Can anyone offer suggestions?
Go to the top of the page
 
+Quote Post
BillGates
post May 28 2004, 05:32 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Banned
Posts: 1
Joined: 28-May 04
Member No.: 3,056



*** Post removed by admin ***
Go to the top of the page
 
+Quote Post
Hemant
post May 29 2004, 10:28 AM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Well there can be several solutions....
1.
This is the most easiest one..
Each time you start a terminal...~/.bashrc file is read.So you can have a shell script that will report to you if a particular partition was used up to 95%!!! Now can you write the shell script???
2.
Second is just a minor modification of your idea..(coz i hate crontab)..you can use at command...which will execute the shell script..and send you mail about the status of hard disk!!!
3.
Third is...if you use that computer yourself quite often...run gkrellm

PS: i will post the shell script soon..coz i am replying to this post from a windoz machine i must check before putting it here!!!


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
geesh
post Jun 3 2004, 10:57 AM
Post #4


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 28-May 04
Member No.: 3,054



A script would be ideal but I'm unaware of how to write one that would get the job done.

The 'awk'ing of the df command seems very clumsy though..can anyone think of another way to do this?

Also, the machines that will be running this are all remotely controlled and rarely do I log into them unless something messes up. The Gkrellm and the .bashrc idea wouldn't work due to this. An init.d script would be the ideal method.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 11:18 PM