LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Getting Notification when disk space cross a threshold value (http://www.linuxquestions.org/questions/linux-mobile-81/getting-notification-when-disk-space-cross-a-threshold-value-736629/)

raikar 06-30-2009 03:58 AM

Getting Notification when disk space cross a threshold value
 
I am writing a programm on linux ( ubuntu)

i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?

I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.

bhaslinux 06-30-2009 04:18 AM

confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html

do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.

raikar 06-30-2009 05:11 AM

Quote:

Originally Posted by bhaslinux (Post 3591191)
confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html

do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.


Sorry for the confusion ,

I mean, i want to get notification from OS whevent the free space for any of the "mounted drives" goes below a threshold value .

syg00 06-30-2009 05:50 AM

Did you even read the script ?.
Won't take much to modify it - perhaps you should make some effort to do it yourself.

ghostdog74 06-30-2009 05:54 AM

Quote:

Originally Posted by raikar (Post 3591172)
I am writing a programm on linux ( ubuntu)

i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?

I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.


See here for an example.


All times are GMT -5. The time now is 05:28 AM.