On Thu, Aug 19, 2004 at 02:01:22PM +0300, Ira Abramov wrote:
> second, I wanted to start looking into how much bandwidth is taken. the
> server has been up for nearly 40 days at Actcom now, and the eth0
> statistics show 3GiB transmitted, although the stats of my most loaded
> virtual website say 117G has gone through... at least according to
> webalyzer and Apache. am I checking in the wrong place? I'd like to
> install MRTG to meter exactly whet my line usage is (only one NIC, very
> simplistic), what is the best place to read this info from?

On IGLU, we used to have an MRTG setup, polling its info from ipchains
entries. Each ipchains (and iptables too; run 'iptables -L -v' to see)
entry keeps an account of the number of bytes it passed. This way, you
can make a generic one for eth0 ('... -i eth0') and more complicated
ones, e.g. to check what hat percentage of this is HTTP traffic.

MRTG's contrib directory has a script to poll iptables.

In iptables, you'd usually set up a bunch of rules without --jump, and
place them first, so they'll do simple accounting and won't interfere
with real firwalling.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to