| 1 |
Date: Sun, 20 Oct 2002 17:35:11 +0800 |
| 2 |
From: Ziaur Rahman |
| 3 |
To: tomzo@ |
| 4 |
Subject: Contrib: Quota warning based on threshold. |
| 5 |
X-Sender: ziaur.rahman |
| 6 |
User-Agent: Internet Messaging Program (IMP) 4.0-cvs |
| 7 |
X-Webmail-Company: QALA Singapore Pte Ltd. |
| 8 |
|
| 9 |
Hi, |
| 10 |
|
| 11 |
First, let me thank you from the bottom of my heart for writing this fantastic |
| 12 |
module that saved my life. |
| 13 |
|
| 14 |
I wrote a script to send warning message if user's disk usage is close to or |
| 15 |
over their quota limit. As I couldn't find a perl script or any script which |
| 16 |
can handle threshold, I had to come up with this script. It uses your Quota |
| 17 |
module and also some code snippets from test.pl that is included with the |
| 18 |
module. Administrators can run this and get a full report of disk usage with a |
| 19 |
predefined threshold status of all users or a particular user. They can also |
| 20 |
use it in the crontab to send out warning messages to users whose disk usage |
| 21 |
reached their threshold. |
| 22 |
|
| 23 |
Hope you consider this as worthy enough to include in your contrib directory. |
| 24 |
|
| 25 |
I have attached the script (tar file), with a sample quotawarn.msg file which |
| 26 |
is a configurable template for sending mails to user. You can also download it |
| 27 |
from: |
| 28 |
|
| 29 |
http://mzrahman.com/codes/quotadm.tar |
| 30 |
|
| 31 |
Regards, |
| 32 |
|
| 33 |
Ziaur Rahman |
| 34 |
Systems Engineer |
| 35 |
Singapore. |