Is there a way to look up how much bandwidth some on has used from the command line?
I know you can do it in WHM, but is it stored in a file? Where does WHM read it from?
How does the 80% notifier know what it used that much?
Is there a way to look up how much bandwidth some on has used from the command line?
I know you can do it in WHM, but is it stored in a file? Where does WHM read it from?
How does the 80% notifier know what it used that much?
Daily and monthly bandwidth, where WHM gets it from, is stored in the user files at /var/cpanel/bandwidth/[username] and look like this:
01.2004=69908
02.2004=26603
1.24.2004-all=4494
1.24.2004-http=4494
1.27.2004-all=1301
1.27.2004-http=1301
1.29.2004-all=7789
1.29.2004-http=7789
1.31.2004-all=11676
1.31.2004-http=11676
2.10.2004-all=5168
2.10.2004-http=5168
2.12.2004-all=1571
2.12.2004-http=1571
2.14.2004-all=4494
2.14.2004-http=4494
2.17.2004-all=5187
2.17.2004-http=5187
2.3.2004-all=5689
2.3.2004-http=5689
2.7.2004-all=4494
2.7.2004-http=4494
As you can tell, this is one of the sites I don't use yet.
Just look at the file whichever way you prefer.