
How can I check disk quotas on my Verio VPS account?I have a couple of clients who are on the same Verio/NTT Virtual Private Server (VPS) system, and I want to have some simple script to check their disk usage. It's not a simple "du" sort of task, however, because of the peculiarities of the VPS environment. Any ideas? Fortunately for you, VPS wizard Mark Sharkey of Precision Pros just recently published a great script that does just what you seek. Here's his introduction to the script: I needed an easy way to check my servers for users approaching their diskquota, so, I put together a simple script based off Scott Wiersdorf's vlistuser. The script is called checkquota. It will display all users on the server that are using more than 80% of their disk quota. You can call this script with a cronjob so that an email is sent with a list of these users. More information on the script can be found at Providertalk.com. Here are the installation instructions: You can find a copy of the source code: Checkquota. Do this:
Note that if you're running bash or any other Bourne shell descendant you don't need to worry about step #3 here. When you run the script, here's what you'll see: $ checkquota -h
usage: checkquota [options]
options: You may also use the following "long-style" options to achieve the --all show all users Very nice job, and a great script to study if you want to learn more about shell script programming. Of course, you might also like to check out my book Wicked Cool Shell Scripts, but that's another story entirely! :-)
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
Unix and Linux Help
(Article 5899)
Tagged: checkquota, disk quota, verio, vps Previous: What's a technology evangelist? Next: Does raising profit margin increase costs? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader.
Rather amazingly, there are no comments on this article yet.
I have a lot to say, but ...
I do have a comment, now that you mention it!
|
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|