Bandmin doesn'r count for single ports

mstuebner

Well-Known Member
May 13, 2007
50
0
156
Hello.

since a while I realize that bandmin is running and counts traffic with results close to the mrtg running beside. But bandmin shows only values for the overall counters, not for the single ports. Any idea why? Where does bandmin take the data from? Is it based on iptables, or how does it cout traffic?

The following data is taken from /var/log/bandwidth/current (with changed IP):

10.10.10.10-all-in=263.395833333333
10.10.10.10-all-out=285.104166666667
10.10.10.10-icmp-in=0.508333333333333
10.10.10.10-icmp-out=0.508333333333333
10.10.10.10-tcp-in=200.645833333333
10.10.10.10-tcp-in-110=0
10.10.10.10-tcp-in-143=0
10.10.10.10-tcp-in-20=0
10.10.10.10-tcp-in-2082=0
10.10.10.10-tcp-in-2086=0
10.10.10.10-tcp-in-21=0
10.10.10.10-tcp-in-22=0
10.10.10.10-tcp-in-23=0
10.10.10.10-tcp-in-25=0
10.10.10.10-tcp-in-3306=0
10.10.10.10-tcp-in-6667=0
10.10.10.10-tcp-in-80=0
10.10.10.10-tcp-out=242.591666666667
10.10.10.10-tcp-out-110=0
10.10.10.10-tcp-out-143=0
10.10.10.10-tcp-out-20=0
10.10.10.10-tcp-out-2082=0
10.10.10.10-tcp-out-2086=0
10.10.10.10-tcp-out-21=0
10.10.10.10-tcp-out-22=0
10.10.10.10-tcp-out-23=0
10.10.10.10-tcp-out-25=0
10.10.10.10-tcp-out-3306=0
10.10.10.10-tcp-out-6667=0
10.10.10.10-tcp-out-80=0
10.10.10.10-udp-in=62.2416666666667
10.10.10.10-udp-out=42.0041666666667

the service.conf looks like:

#!/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');
@SERVICES = ('80', '110', '143', '21', '20', '22', '23', '25', ,'2082' ,'2086','6667','3306');
#@SERVICES = ('80', '25', '110');

$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';