Web Hosting Talk







View Full Version : Anyone?? Reseller script for CPANEL


universal2001
01-06-2002, 09:33 PM
Anyone know where I can get a reseller script that counts total bandwidth + space used for all the reseller accounts on a CPANEL/WHM system..

Thanks

Jedito
01-06-2002, 09:42 PM
The space part of it would actually be quite easy. I'd just set up a simple script to do a

du -s /home/username

for each of the accounts the person has set up. You can have it run daily by cron. Each time the reseller ads a new account just add a new line to the script to count the usage for that directory as well.

To the BW thing, you can access to the reseller WHM and list Bandwidth Usage, and there you'll got the total of his BW usage.

I hope this help