Contribute  :  Advanced Search  :  Directory  :  Forum  :  FAQ's  :  My Downloads  :  Links  :  Polls  
AFP548 Changing the world one server at a time.
Welcome to AFP548
Thursday, July 29 2010 @ 09:30 am MDT
   

Quota Monitor Menu

Articles

Quota Monitor Menu

By Adam Gerson 

The Situation: You have a Mac OS X Server with network home directories and disk quotas enabled.
 
The Problem: The Mac OS Finder on client machines does not have very good support for warning users they are approaching their file quota limit. They end up all of sudden unable to save files with little or no explanation as to why.
 
The Solution: QuotaMonitorMenu places the user’s home folder quota status right in the menu bar. It will also pop up warnings at regular intervals. All warnings and text are customizable.
 
Download (Now with package installer!)
http://homepage.mac.com/agerson/QuotaMonitorMenu/QuotaMonitorMenu.zip
 
Screen Shot
http://homepage.mac.com/agerson/QuotaMonitorMenu/ScreenShot.png

If you would like the source code or have any questions please feel free to email agerson AT mac DOT com

Story Options

Advertising

Quota Monitor Menu | 11 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Quota Monitor Menu
Authored by: agerson on Wednesday, June 20 2007 @ 09:24 am MDT
  • Quota Monitor Menu - Authored by: Anonymous on Wednesday, September 26 2007 @ 07:31 am MDT
Quota Monitor Menu
Authored by: Anonymous on Friday, June 22 2007 @ 05:46 am MDT
Warning, don't use this is you have Network Home Redirect installed because it will knock it out, as I'm just discovered from 15 moaning designers with no fonts this morning
Quota Monitor Menu
Authored by: agerson on Friday, June 22 2007 @ 06:04 am MDT
Yes, Quota Monitor Menu writes its own login hook which replaces NHR's.

There is a way around this.

Reinstall NHR and find its login hook. Add a line to your existing login hook like:
open /etc/QuotaMonitorMenu/QuotaMonitorMenu.app
Quota Monitor Menu
Authored by: Anonymous on Monday, June 25 2007 @ 12:56 pm MDT
I removed the postflight script from the package and created this LaunchAgent.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>Label</key>
<string>QuotaMonitorMenu</string>
<key>OnDemand</key>
<false/>
<key>LowPriorityIO</key>
<true/>
<key>Nice</key>
<integer>-10</integer>
<key>ProgramArguments</key>
<array>
<string>/etc/QuotaMonitorMenu/OpenQuotaMonitor</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Quota Monitor Menu
Authored by: Acidprime on Wednesday, July 11 2007 @ 12:37 am MDT

For anyone interested , I have modified the source code to display the size of /Volumes/<logname> so you can have the menu display a home directory perhaps mounted by MCX, loginhook, location file,alias etc. Basically meaning if you have a (Portable | Mobile) account you can see the quota information (free space) of the mounted share,instead of the local home folder's file system.

Download:QuotaMonitorMenuMobile.zip note: different name so modify the hook accordingly

Posted with original authors permissions

I also made one that uses the OriginalHomeDirectory attribute but it would only work for people using a non-guest pure kerberos automount setup. if you would like it instead feel free to contact me

Quota Monitor Menu
Authored by: agerson on Monday, March 16 2009 @ 08:49 pm MDT