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.

Bandwidth logging on diffrent ports

Discussion in 'General Discussion' started by wadearnold, Mar 17, 2002.

  1. wadearnold

    wadearnold Well-Known Member

    Joined:
    Jan 13, 2002
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    I am looking for a way to configure cpanel to handle bandwidth of another ports service. In this case it is real audio. But could also be used for other services that could be provided on different port numbers.
    1.) has anyone done this?
    2.) If not I was wondering if there was a log file that I can send this data to. The only thing that I have thought that could work is to use the logging features of ip_tables and then format that output to look like apache logs and add that data to the apache log. I have yet to try this. I wanted to ask before I re-invented the wheel.

    Cheers;
    wade
     
  2. carperman

    carperman Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    Hello, i am just trying to add bandmin monitoring to port 1100, which is a port a webmail program i have uses to mimic pop3 account, the cgi script is called mmmpopd and i have edited my services.conf in bandmin dir as follows

    #!/usr/bin/perl -I/usr/local/bandmin
    #
    #****************************************
    #Bandmin (c)1998-2001 J. Nick Koston (BlueDraco)
    # - A simple Bandwidth Monitor
    #****************************************
    #
    # Services Config file
    #
    # ('www','pop3','imap','ftp','ftp-data','ssh','telnet','smtp','cpanel','whm', 'ircd','mysql','mmmpopd');
    #@SERVICES = ('80', '110', '143', '21', '20', '22', '23', '25', ,'2082' ,'2086','6667','3306','mmmpopd');
    @SERVICES = ('80', '25', '110', '20', '21', '1100');

    $PORTDB{80} = 'www';
    $PORTDB{110} = 'pop3';
    $PORTDB{143} = 'imap';
    $PORTDB{21} = 'ftp';
    $PORTDB{20} = 'ftp-data';
    $PORTDB{22} = 'ssh';
    $PORTDB{23} = 'telnet';
    $PORTDB{25} = 'smtp';
    $PORTDB{2082} = 'cpanel';
    $PORTDB{2086} = 'whm';
    $PORTDB{6667} = 'ircd';
    $PORTDB{3306} = 'mysql';
    $PORTDB{1100} = 'mmmpopd';
     
  3. Brownie

    Brownie Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Id like this feature too - I run realserver and shoutcast, bandmin is a no go for me deffinately....it doesnt even monitor HTTP :(

    anyone got any recommendations besides mrtg? :p
     
  4. cass

    cass Well-Known Member

    Joined:
    Jul 17, 2002
    Messages:
    354
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Argentina/USA/Mexico
    Hello, does anyone managed to make this work?

    I also wants to monitor by port instead of by protocol.
    I have the services.conf configured accordingly... but seems that it's not working.

    I've looked at the iptables and it looks good (all the ports I want being added to the rule.... etc.)

    tcp -- anywhere 209.***.***.* tcp spt:####
    tcp -- 209.***.***.* anywhere tcp dpt:####

    etc., one line for each ip and port, and the end the lines for protocols.... so, the accounting looks good.

    But the only ones that show info on bandmin are :
    all ...
    tcp ...
    udp ...
    icmp...

    But it's not doing the detailed port thing.

    Ideas?
    Regards.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page