SYNOPSIS | DESCRIPTION | REQUIREMENTS | INSTALL | EXAMPLE OUTPUT | FAQ | LICENSE | FEEDBACK | AUTHOR
dfeta sample dfeta -d /usr/bin/df dfeta dfeta -h
dfeta samples disk freespace information on regular periods. then it can show (rough) estimate time when disk/device will be full.
to sample current status (free space) on all local filesystems:
dfeta sampleto get estimates for the sampled filesystems:
dfeta etaor just:
dfeta’dfeta sample’ is supposed to be run on regular basis (for example from the crontab). to attach it to every hour in the crontab you need to enter this line:
0 * * * * /usr/local/bin/dfeta sampledfeta holds current statistics in:
$HOME/.dfeta/dataeach ’sample’ command will backup previous data file.
dfeta needs Perl. it is pure perl implementation and uses the following perl modules:
Data::Dumper Storable Math::BigFloatall of them should be standard and packed inside the Perl package you have installed.
install is simple. just put dfeta file in your visible executables path. for example one of:
/usr/local/bin /usr/bin ~/bin
Device | Mount point | Estimate full at | Full in | /dev/sda2 | / | [never] | [n/a] | /dev/sdb2 | /third | Fri Sep 3 2010 | in 2 months | /dev/sde2 | /home/cade/back | Mon Apr 14 2011 | in 9 months |
Q: what estimation algorithm is used? A: currently only linear regression is used. more algorithms may be added in the future. no additional sampling will be needed for other algorithms. just keeps your sampling regular!
dfeta is distributed under the GPL license, see COPYING for the full license text.
all notes, suggestions, ideas you may have are welcome. thanks!
Vladi Belperchinov-Shabanski <[email protected]> <[email protected]> <[email protected]> http://cade.datamax.bg/