domain bandwidth usage file

OxnardMontalvo

Verified User
Joined
Dec 13, 2004
Messages
116
Location
Nashville, TN
Ok, I wrote my ShoutcastbasndwithCounter script and it's running fine but in looking at it and what it's doing, it's actually just accumulating the bandwidth for the account holder, not the domain. (bandwidth.tally is in /usr/local/directadmin/data/users/USERNAME. For my current situation, that's fine but I'd rather accumulate bandwidth on a domain by domain basis so if a domain goes over it's allotment, DA can suspend that domain, not the reseller.

All that to say this, where can I find the equivalent of bandwidth.tally for a domain? I found DOMAINSNAME.usage but it's not the same as bandwidth.tally. bandwidth.tally is easy to work with because you just append to the file. Is there some equivalent mechanism for each domain? If not, how is the number in DOMAINNAME.usage calculated?


=C=
 
Last edited:
jmstacey said:
try /usr/local/directadmin/data/USERNAME/domains/DOMAIN.COM.usage

Nope.

I've got
/usr/local/directadmin/data/users/USERNAME/domains

and I found that. I guess my question then is, if domain.usage is the file I need to update, is that overwritten every night or is the number there used to calculate. I can parse that file, pull out bandwidth= and update the number. But if that file is overwritten from scratch every night then it does me no good.

=C=
 
Back
Top