Bandwidth Calculations

Read through the threads, but didn't find the answers to the questions users are asking me. Going to do some manual testing if no one knows the answer, but I thought I'd ask first just so I could answer the customers sooner.

Bandwidth in WHM is calculated from FTP, POP3, and HTTP access (IMAP now too or no?) however my clients are starting to pick at those and want more exact answers as to what parts of those are calculated. Is it incoming traffic, outgoing traffic or both for FTP that's calculated? With popmail, is the bandwidth calculated when the mail arrives or just when it's downloaded (I assume just downloaded as receiving is more of an SMTP thing, but I'm just making sure here)?

Read through the threads, but didn't find the answers to the questions users are asking me. Going to do some manual testing if no one knows the answer, but I thought I'd ask first just so I could answer the customers sooner.

Bandwidth in WHM is calculated from FTP, POP3, and HTTP access (IMAP now too or no?) however my clients are starting to pick at those and want more exact answers as to what parts of those are calculated. Is it incoming traffic, outgoing traffic or both for FTP that's calculated? With popmail, is the bandwidth calculated when the mail arrives or just when it's downloaded (I assume just downloaded as receiving is more of an SMTP thing, but I'm just making sure here)?

I appreciate any help answering those questions. [/quote:a61e20df9d]
bandwidth = 'inbound' plus 'outbound'

I came accross a script that runs within Shell.. When running it will display the traffic a user is using on ALL ports and from what I can tell is very accurate. It has no logging feature, but I was thinking, if a logging option could be added could it not report to the bytes log thus providing a more robust bandwidth monitoring solution rather then just HTTP POP3 FTP?

Just my two cents.. don't know if it is possible.. but it can't hurt to find out..

Timothy Sheehan
sheehan@interadvantage.com
www.interadvantage.com

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...

I came accross a script that runs within Shell.. When running it will display the traffic a user is using on ALL ports and from what I can tell is very accurate. It has no logging feature, but I was thinking, if a logging option could be added could it not report to the bytes log thus providing a more robust bandwidth monitoring solution rather then just HTTP POP3 FTP?

Just my two cents.. don't know if it is possible.. but it can't hurt to find out..

[/quote:0ddde44d59]
Please click on the link to go to appropriate thread :
http://forums.cpanel.net/read.php?TID=4519

Yes I understand how WHM calculates bandwidth…
Yes I know how Bandmin works…
This script I am talking about parses /proc/net/tcp and /proc/net/udp to provide the user (running the script) with an overview of per-user bandwidth usage plus some other information about the connections at that time.

I am just saying if we can take the realtime per-user bandwidth usage that this script produces and somewhat report it into the bytes log or where ever WHM calculates bandwidth would it not give almost a 100% accurate report of a per-user (not per IP)bandwidth report using ALL ports instead of just HTTP, POP3, FTP.

Timothy Sheehan
sheehan@interadvantage.com
www.interadvantage.com

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...