wadearnold

Well-Known Member
Jan 13, 2002
111
0
316
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
 

carperman

Well-Known Member
Feb 7, 2002
150
0
316
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';
 

Brownie

Well-Known Member
Aug 10, 2001
143
0
316
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
 

cass

Well-Known Member
Jul 17, 2002
349
0
166
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: