Web Hosting Talk







View Full Version : Measuing bandwith usage per IP


energy
03-13-2001, 11:24 PM
There is a server running RedHat Linux 6 or 7
The server has 20 IPs
On each IP there is only one web site
The server has one network card

How can the server owner find out how much transfer each IP (virtual interface) used? How much bandwidth it is using per second?

This has to be done without using HTTP or FTP server logs.

Any ideas?

allan
03-14-2001, 12:50 AM
mod_throttle. You can do a searh on this board for more information, or visit their website:

http://www.snert.com/Software/mod_throttle/

Travis
03-14-2001, 02:02 AM
mod_throttle is great for limiting bandwidth, not so great for reporting.

Bandmin will work on any Linux 2.0 or 2.2 system with firewalling and ip accounting enabled. It logs all usage on every interface - works great for me; I then take the data and stuff it into a database for further processing. It also generates HTML reports that you can refer your clients to.

Unfortunately, the official site seems to have disappeared. If anybody wants it, let me know, and I'll put it up somewhere.

Wazeh
03-14-2001, 08:57 AM
bandmin is still available right here:
ftp://ftp.bandmin.org/pub/bandmin/

X-treme
03-14-2001, 05:19 PM
Thanks for the ftp link!! I have been searching everywhere for this with no luck. Maybe now I can finally track bandwidth without sifting through logs and using the trusty old calculator!!

X-treme

dektong
03-14-2001, 06:25 PM
How about mod_bandwith? Through google search engine, there was a discusion regading this and its ability to calculate bandwith. However, I can't find any link that will explains how this work. Anybody know about mod_bandwith?

cheers,
:beer:

energy
03-14-2001, 06:32 PM
mod_throttle calculates bandwidth and it is only for Apache.
What needed is something to calculate all the traffic on an IP.
bandmin gives
iptables v1.1.1: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded. on RH 7, Kernel 2.2.16-22 on an i686

what now?

energy
03-14-2001, 06:50 PM
Did a
rpm -Uvh http://www.gnumonks.org/ftp/pub/rpms/redhat-7.0/RPMS/i386/iptables-1.2-1.i386.rpm

and now I'm getting
iptables v1.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

whats next?