Total Network Usage

der.hans plug-discuss@lists.plug.phoenix.az.us
Wed, 10 Apr 2002 22:50:57 -0700 (MST)


Am 10. Apr, 2002 schwätzte Lonnie Clardy so:

> Do any of you know of a tool that allows you to get a graph of total
> through put for an interface? Maybe if I tell you why. it will make more
> sense, my provider has explained to me that they only expect to see 150
> megabytes of upstream traffic from my machine to the Internet per day
> and I have received a letter telling me that I am exceeding that amount
> regularly. I would like to just have a graph or something showing the
> total amount of traffic that I actually send on a daily basis.

$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:60:97:D1:69:B1
          inet addr:10.1.1.102  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::260:97ff:fed1:69b1/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9363754 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8015373 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1525349627 (1454.6 Mb)  TX bytes:1507412321 (1437.5 Mb)
          Interrupt:10 Base address:0xd400

Those are 'packet' numbers, so I'm not sure they correspond to bytes or
anything.

> I am running RedHat 7.2 and already use MRTG to get some information.

mrtg should be able to map stuff for you, but it only takes snapshots of
current bandwidth use rather than total number of bytes moved.

Using SNMP you can grab counters that show how much traffic has been moved.

There are probably other ways to get that info.

ciao,

der.hans
-- 
#  This line intentionally left blank.
#  C'est la Net - der.hans