All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alasdair Ramsay <alasdair.ramsay@cdc.uk.net>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: measure traffic
Date: Tue, 08 Oct 2002 10:46:35 +0100	[thread overview]
Message-ID: <3DA2A97B.7020605@cdc.uk.net> (raw)
In-Reply-To: 20021007201735.LIPN459.mta02-svc.ntlworld.com@there

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Then you can plot them onto rolling graphs using mrtg, looks very
pretty.  I have a small shell script that reads the byte counters from
the /proc tree, resets them and plots the results.

Regards
Alasdair

Antony Stone wrote:
| On Monday 07 October 2002 7:58 pm, PayalR wrote:
|
|
|>Hi,
|>I have a small urgent problem. As I told you all before, I have my single
|>Linux box at a server farm where I have to pay per Mb of data transmitted.
|>I have a doubt that those guys there are cheating me. They are taking more
|>money than actual data transmitted. Can I use iptables to log all incoming
|>and outgoing data and see total incoming/outgoing data in a
day/week/month?
|
|
| Why not just use the byte counters in ifconfig ?
|
| eg: ifconfig eth1
|
| eth1      Link encap:Ethernet  HWaddr 00:02:2D:05:3F:8D
|           inet addr:192.168.44.101  Bcast:192.168.44.255
Mask:255.255.255.0
|           UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
|           RX packets:1930 errors:0 dropped:0 overruns:0 frame:0
|           TX packets:1950 errors:0 dropped:0 overruns:0 carrier:0
|           collisions:0 txqueuelen:100
|           RX bytes:912045 (890.6 Kb)  TX bytes:265386 (259.1 Kb)
|           Interrupt:9 Base address:0x100
|
| So this machine I'm on now has received 912045 bytes and sent 265386
bytes
| since the interface was initialised....
|
| Antony.
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9oql54+7BX0uR648RAiVmAJ98GbbdRT1ju5fq6DVUGGv3SC87ZgCfQbsb
klhUAERGjgpRGhjllZ5GWBo=
=GfdD
-----END PGP SIGNATURE-----




  reply	other threads:[~2002-10-08  9:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200210080025.26576@.>
2002-10-07 20:17 ` measure traffic Antony Stone
2002-10-08  9:46   ` Alasdair Ramsay [this message]
2002-10-08 18:56   ` Payal
2002-10-08  7:39 ` Martijn Klingens
2002-10-09 12:04 Ferry van Steen
  -- strict thread matches above, loose matches on Subject: below --
2002-10-09 10:39 Heupink, Mourik Jan C.
2002-10-08 23:27 Yogini Parkhi
2002-10-07 18:58 PayalR

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DA2A97B.7020605@cdc.uk.net \
    --to=alasdair.ramsay@cdc.uk.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.