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.

Cpanel Monitor Bandwidth on other ports!

Discussion in 'General Discussion' started by michael80l, Dec 13, 2003.

  1. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hey,

    I got customers that we would like to setup things like shuotcast and other numerous services. Except cpanel dosen't log the bandwidth those use. How do more ports to cpanel so it logs how much bandwidth they use for this other stuff they can install?

    Shuotcast
    Servers

    And things like that?

    Thanks in advanced,
    Michael
     
  2. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    I asked this question a while back and believe the reply was "cPanel doesn't support this requirement". Instead I added a custom rule via iptables that would monitor incomg and outgoing bandwidth for a specific service using a specific port. A script running via cron periodically could notify your client of the bandwidth used for a given period.
     
  3. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    OHhhh...

    That would wokr great... can you tell me how you did it and all?

    Thanks,
    Michael
     
  4. netwrkr

    netwrkr Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16

    The iptables setup is pretty easy. Someone else is going to have to craft the script for you.

    # Monitor incoming bandwidth to destination port 1234
    iptables -I INPUT -p tcp -m tcp --dport 1234 -j ACCEPT

    # Monitor outgoing bandwidth from source port 1234
    iptables -I OUTPUT -p tcp -m tcp --sport 1234 -j ACCEPT

    If you want to get more specific see a good iptables tutorial at http://iptables-tutorial.frozentux.net/iptables-tutorial.html
     
  5. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Didn't you say you alraedy had the script?

    coudn't you just copy it out and email it too me?
     
  6. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    bandmin can monitor bandwidth on any port you configure. See /usr/local/bandmin/services.conf
     
  7. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Thanks,

    Now i;ll set that up later tonight.

    I wonder how we could intergrate bandmin and cpanel for those ports or those ports and cpanel.

    Michael

    PS thanks for that tip about bandmin
     
  8. pumpkin

    pumpkin Member

    Joined:
    Sep 7, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I've changed usr/local/bandmin/services.conf to monitor 2 shoutcast ports but the output was 0.

    I used iptables accounting and I found a way to monitor the bandwidth.

    Regards
    -- pumpkin
     
  9. Elliot

    Elliot Well-Known Member

    Joined:
    Jan 22, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Just an FYI @ shoutcast. the RIAA tax companies that stream music. So make sure that they aren't DJing anything that the RIAA owns because you will be taxed :(
     
  10. mainarea

    mainarea Active Member

    Joined:
    Nov 18, 2002
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Wrong, it's not the RIAA. You need to pay licensing fees for public performance of the music to the applicable organization. Usually, ASCAP, BMI, and SESAC are the only ones that you need, and they're really not too expensive. The RIAA's attempt to collect royalties (CARP) basically failed, unless you're making over $500,000 or $1-2 million each year (not sure of the amount, but it really only applies to the big guys such as Yahoo and AOL).

    - Matt
     
  11. michael80l

    michael80l Member

    Joined:
    Oct 26, 2003
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Its actually a hosting radio...no music.
     
  12. luigi

    luigi Member

    Joined:
    Oct 28, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    i'm also getting an output of 0 on the ports i've added to services.conf for bandmin. the lines for the ports are present in iptables but still not being counted... anyone know the solution to this?

    Luigi
     
Loading...

Share This Page