nmotika

Member
Sep 10, 2002
15
0
151
bandmin shows wrong numbers for outgoing traffic

After consulting with our ISP and totally different bandwidth usage numbers I think that bandmin show ten times bigger outgoing traffic that it really is...
And View/Bandwidth stats shows ten times minor numbers :(

What tool do you use for controling bandwidth usage?
 

nmotika

Member
Sep 10, 2002
15
0
151
reply :)

Maybe I shouldn’t reply to myself, but I think that I partially solved the problem...

If this number &all-all=1121466750& (found in file /val/log/bandwidth/2002/Sep/10) is in bits (not bytes) then bandmin conf file is written badly and someone should repair it because one megabyte is 1/(8*1024*1024) instead of 1/(1024*1024)

Is my thinking correct?
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:ada41e449f][i:ada41e449f]Originally posted by nmotika[/i:ada41e449f]

Maybe I shouldn’t reply to myself, but I think that I partially solved the problem...

If this number &all-all=1121466750& (found in file /val/log/bandwidth/2002/Sep/10) is in bits (not bytes) then bandmin conf file is written badly and someone should repair it because one megabyte is 1/(8*1024*1024) instead of 1/(1024*1024)

Is my thinking correct?
[/quote:ada41e449f]

1 Mega Byte = 1048576 Bytes

Bandmin log files are stored in Bytes, and it's accurate due to using iptables. Bandmin currently has support for iptables, ipchains, ipf, ipfwadm, UserIpAcct, and ipfw.

WHM doesn't show all of the traffics it shows http, ftp and pop3 only this is why it shows lower bandwidth usage than bandmin

Also Bandmin counts traffics (Incoming traffic & outgoing traffic) of most common ports consequently shows higher bandwidth usage
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:37b1c35b10][i:37b1c35b10]Originally posted by jsteel[/i:37b1c35b10]

How much higher is normal though? Bandmin is howing 4x as much as WHM!

Jaz[/quote:37b1c35b10]
If it's a shared IP (name based) account means more than a domain using an IP address and bandmin shows bandwidth usage based on IP addresses, if multiple domains are on an IP address then you can not tell which one used how much,

If you would like to protect your system bandwidth accurately you have to create IP based accounts.

WHM bandwidth usage report is good for shared IP (name based) hosting

It's impossible to specify how much bandwidth usage should be higher in bandmin it depends on usage.
 

nmotika

Member
Sep 10, 2002
15
0
151
[quote:f25e875bd2][i:f25e875bd2]Originally posted by itf[/i:f25e875bd2]

1 Mega Byte = 1048576 Bytes

Bandmin log files are stored in Bytes, and it's accurate due to using iptables. Bandmin currently has support for iptables, ipchains, ipf, ipfwadm, UserIpAcct, and ipfw.
[/quote:f25e875bd2]

It's impossible that admin logfiles (/var/log/bandwidth/) are stored in bytes because I would have 12gb of bandwidth usage this month and my ISP is reporting about 2gb...
Somewhere is mistake but I can't find where...
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
Atlanta, GA
You're failing to realize that WHM shows a total at the bottom for all accounts. that total is about 4x smaller than the total Bandmin shows. In this particular case, all sites are on the same IP, so the numbers should be relatively close (not exact obviously, but close).

Jaz

[quote:8e99228731][i:8e99228731]Originally posted by itf[/i:8e99228731]

[quote:8e99228731][i:8e99228731]Originally posted by jsteel[/i:8e99228731]

How much higher is normal though? Bandmin is howing 4x as much as WHM!

Jaz[/quote:8e99228731]
If it's a shared IP (name based) account means more than a domain using an IP address and bandmin shows bandwidth usage based on IP addresses, if multiple domains are on an IP address then you can not tell which one used how much,

If you would like to protect your system bandwidth accurately you have to create IP based accounts.

WHM bandwidth usage report is good for shared IP (name based) hosting

It's impossible to specify how much bandwidth usage should be higher in bandmin it's depend on usage.[/quote:8e99228731]
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:476c58bfe1][i:476c58bfe1]Originally posted by nmotika[/i:476c58bfe1]

[quote:476c58bfe1][i:476c58bfe1]Originally posted by itf[/i:476c58bfe1]

1 Mega Byte = 1048576 Bytes

Bandmin log files are stored in Bytes, and it's accurate due to using iptables. Bandmin currently has support for iptables, ipchains, ipf, ipfwadm, UserIpAcct, and ipfw.
[/quote:476c58bfe1]

It's impossible that admin logfiles (/var/log/bandwidth/) are stored in bytes because I would have 12gb of bandwidth usage this month and my ISP is reporting about 2gb...
Somewhere is mistake but I can't find where...[/quote:476c58bfe1]
If you can't believe that it stores bandwidth usage in bytes just read code of the bandmin at /usr/local/bandmin/bandmin it's in Perl you can find out that it counts log files on Bytes

Bandwidth log files are on a day per day basis for a total month report you have to sum daily log reports

However there are some methods to abuse bandwidth read this thread about Bandwidth calculation I wrote there about bandwidth abuse and calculation http://forums.cpanel.net/read.php?TID=3259
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
[quote:9692b8b761][i:9692b8b761]Originally posted by jsteel[/i:9692b8b761]
You're failing to realize that WHM shows a total at the bottom for all accounts. that total is about 4x smaller than the total Bandmin shows. In this particular case, all sites are on the same IP, so the numbers should be relatively close (not exact obviously, but close).[/quote:9692b8b761]
WHM only accounts for outgoing HTTP, FTP and POP3 traffic (and surprisingly well from what I can see). You might have some user using IRC or something.
 

Noldar

Well-Known Member
Jun 26, 2002
64
0
156
Ponchatoula, LA
I know this is a slightly old thread, but I am seeing an almost exactly 10x discrepency bewteen WHM and Bandmin. I currently only have two sites on this server. Here's what WHM reports:


User Domain Megabytes Gigabytes
noldarc noldar.com 9.640806 0.009415
noldar.net 0.000000 0.000000
noldarcommunications.com 0.000000 0.000000
noldarcommunications.net 0.000000 0.000000
Total 9.640806 0.009415
wildoakl wildoaklane.com 5.313950 0.005189
forums.wildoaklane.com 4.915716 0.004801
Total 10.229666 0.009990
Total for [Nov 2002] 19.870472 0.019405

And here's Bandmin:

Ip Possible Domain(s) Transfer in gig Transfer in meg Transfer in kbit/s Transfer in kb/s Transfer in mbit/s
162.42.131.187 server.noldar.com
noldar.com
wildoaklane.com
forums.wildoaklane.com
0.082848 85 0.027884 0.003404 0.000028
162.42.131.187 server.noldar.com
noldar.com
wildoaklane.com
forums.wildoaklane.com
0.042104 43 0.050456 0.006159 0.000050
broadcast 0.072395 74 0.000000 0.000000 0.000000
Total in 0.082848 85 0.000000 0.000000 0.000000
Total out 0.042104 43 0.000000 0.000000 0.000000
Total all 0.197346 202 1.398772 0.170749 0.001399

Kinda hard to read, but WHM reports a total of 19.87MB/0.019GB and Bandmin reports 202MB/0.197GB. Seems kind of odd that they would be off by about a factor of 10.

Richard