-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So no answer at all... that's a pitty!

To have at least some information, I wrote a small script:

> #!/usr/bin/env python
> 
> # http://www.alecjacobson.com/weblog/?p=1039
> 
> import subprocess, re, smtplib, email.mime.text
> 
> quota   = subprocess.Popen("quota -v", shell=True,
> stdout=subprocess.PIPE).stdout.read() size    =
> re.findall("[\d\.]+", quota) percent =
> float(size[1])/float(size[2]) * 100
> 
> # if the percentage is a above some threshold then send an email if
> (percent > 90.): # sender's and recipient's email addresses FROM =
> "[email protected]" TO   = ["[email protected]"]    # must
> be a list # Create a text/plain message msg =
> email.mime.text.MIMEText(quota) msg['Subject'] = "!QUOTA! %.1f%%" %
> percent msg['From']    = FROM msg['To']      = ", ".join(TO) # Send
> the mail server = smtplib.SMTP("localhost") server.sendmail(FROM,
> TO, msg.as_string()) server.quit()

which is invoked as follows from cron(ie)tab:

> qcronsub -l h_rt=00:05:00 -l virtual_free=50M -m as -j y -b y -N
> maintenance $HOME/warnuserquota.py >/dev/null

may be this helps other users having the same problems/issues.

Greetings
DrTrigon


On 12.06.2012 21:39, Dr. Trigon wrote:
> Is this also supposed to solve TS-1317 [1]??
> 
> [1] https://jira.toolserver.org/browse/TS-1317
> 
> Thanks and greetings! DrTrigon
> 
> 
> On 16.05.2012 21:31, DaB. wrote:
>> Hello At Wednesday 16 May 2012 21:28:30 DaB. wrote:
>>> There have been arrangements with some projects that need a
>>> lot of space by nature, like mine, The WikiMiniAtlas. But
>>> loging in today for the first time I received a quota warning
>>> with an ultimatum to free space within 4.9 days. Since when is
>>> that active?
> 
>> the quota-service is active since years, but to tell the true
>> not for everybody because there are some bugs in the system. The
>> roots plan to fix this on short-term-base and we will send
>> another mail about this in the next days; but it should not
>> affect you yet. But nevertheless: if you need more disc-space for
>> some reason: Open a jira-bug and you will (most likely) get it.
> 
>>> Daniel
> 
>> Sincerely, DaB.
> 
> 
> 
> 
>> _______________________________________________ Toolserver-l 
>> mailing list ([email protected]) 
>> https://lists.wikimedia.org/mailman/listinfo/toolserver-l
>> Posting guidelines for this list: 
>> https://wiki.toolserver.org/view/Mailing_list_etiquette
> 
> 
> _______________________________________________ Toolserver-l
> mailing list ([email protected]) 
> https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting
> guidelines for this list:
> https://wiki.toolserver.org/view/Mailing_list_etiquette
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/7EuYACgkQAXWvBxzBrDBG9ACfeakuzRgLgWlKVH0COzoL3+sb
bSUAmwQHa2uZlPtJ5k8XyDFDsmhBLCt0
=o8RM
-----END PGP SIGNATURE-----

_______________________________________________
Toolserver-l mailing list ([email protected])
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to