Diskfree is a disk usage monitoring utility with email reporting, built using the sh programming language. It provides useful insights into how much disk space is being used on a machine, enabling users to take action when necessary.
The installation process for diskfree is straightforward. Firstly, if you have Bash installed on your system, you can simply edit line 1 and point it to Bash. If not, you can edit line 1 and point it to the Korn shell instead.
Next, you need to decide which directories you want to be reported on. If you're paranoid, you can use the '-p' option to report on everything. Otherwise, use the '-d' option to specify the directories you want to monitor.
Then, you'll need to decide where reports should be sent. By default, reports go to root, but you can use the '-m' option to send reports to someone else.
You can also specify where the script's files will be put using the '-l' option. The default is /tmp, but you can specify a different location.
Finally, you can set up the frequency of the report using the crontab. For daily reports, create an entry like: 00 00 * * * /some/path/diskfree. For monthly reports, add: 00 02 01 * * /some/path/diskfree -e monthly. Quarterly reports can be set up as follows: 00 04 01 */4 * /some/path/diskfree -e quarterly.
After saving the crontab, copy the diskfree.8 file to /usr/man/man8. Wait for the script to run twice and then check your email for the report.
The new release of diskfree now displays the 'df' output first, making it easier to read and understand. If you encounter any issues or have any suggestions, please send them to [email protected].
Version 2.1.0: N/A