|
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! :-)
Categorized:
Unix and Linux Help
(Article 5899,
Written by Dave Taylor)
Tagged: checkquota, disk quota, verio, vps Previous: What's a technology evangelist? Next: Does raising profit margin increase costs? Subscribe!
Rather amazingly, there are no comments on this article yet.
I have something to say, now that you mention it, but ...
I do have a comment, now that you mention it!
|
Recommended
Recent Entries
Search
I Need Help!
Apple iPad Help
Articles and Reviews Auctions and Online Shopping Blogs and RSS Feeds Building Web Site Traffic Business and Management CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above Facebook Help Google Plus Help HTML and CSS Industry News and Trade Shows iPhone and Cell Phone Help iPod, Sony PSP and MP3 Player Help Mac OS X Help Pay Per Click (PPC) Advertising Search Engine Optimization (SEO) Shell Script Programming Tech Support Video Help The Writing Business Twitter, LinkedIn and Social Network Help Unix and Linux Help Video Game Tips and Help Windows PC Help WordPress Help |