Free Space Monitoring Script

Hello!

Can you help me with a script which will monitoring my free space on hard drives? For example, if my free space less then 2000MB, it will senm me an email with warning.
 
Leave /etc/crontab alone. Use the crontab of the user running the script ([cmd=]crontab -u $user[/cmd])
 
Thanks, all. Problem has been solved with sysutils/monit utility. This utility can keep track space usage, cpu load, daemons state and also start, stop, restart services. It has web interface.
 
as a quick aside

you may like to look at this...
x11-fm/xdiskusage/

you use it like so:

xdiskusage dir

and it gives you a really old-fashioned but nifty graphical
du(1) style summary of directory sizes.

one of those great little tools that epitomizes unix for me.

no kde libs, no gnome libs. simple and to the point.

use the -a switch to size individual files.
 
Back
Top