Web Hosting Talk







View Full Version : Old Topic - New Thread -> Ways to calc bandwidth


webfors
10-09-2000, 02:04 PM
Hi everyone,

I just wanted to start another thread on ways to calculate the total bytes transfered to and from my server. Any ideas?

I looked through some old threads at Scriptkeeper and found Sweede did the following:

cat /proc/net/dev

This gives you the tolal bytes and packets transfered on your interfaces. Is this accurate? Is there any way to reset it to zero without rebooting the computer?

I want to start tracking my actual bytes transfered compared to the 95th percentile method of calculating my usage.

Any help would be appreciated.

webfors
10-10-2000, 04:11 PM
Hmmm, 33 views and no replies!!!!!

Anyone? I know you're out there! :)

Félix C.Courtemanche
10-10-2000, 05:27 PM
Well I guess it is accurate since it is built into the kernel...
As for resetting it to zero, I don't think this is necessary... simply remember the last number and substract it :)

I will try to find out more about this... this could be very interesting.

for bandwidth on the whole server, I highly recommend hooking it to mrtg through SNMP. This will give you your bandwidth on a per-ethernet card basis, on a 5 minute average, 30 minute, ... etc.
Both upsream and downstream, with the max peak, average and current usage.

It is pretty good.

webfors
10-10-2000, 05:46 PM
Hi Felix,

what application do I need to install to do this?

Félix C.Courtemanche
10-10-2000, 11:21 PM
Originally posted by tabernack
what application do I need to install to do this?

hmmm MRTG :)

MRTG is the name of the program (it is written in perl btw) and SNMP is the protocole it uses.