The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

bandmin problem

Discussion in 'General Discussion' started by nmotika, Sep 10, 2002.

  1. nmotika

    nmotika Member

    Joined:
    Sep 10, 2002
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. nmotika

    nmotika Member

    Joined:
    Sep 10, 2002
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  3. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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
     
  4. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    How much higher is normal though? Bandmin is howing 4x as much as WHM!

    Jaz
     
  5. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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.
     
  6. nmotika

    nmotika Member

    Joined:
    Sep 10, 2002
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    [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...
     
  7. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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]
     
  8. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    [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
     
  9. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  10. Noldar

    Noldar Well-Known Member

    Joined:
    Jun 26, 2002
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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
     
Loading...

Share This Page