Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Patrick Coleman <blinken@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Re: Bandwidth Metering
Date: Wed, 29 Sep 2004 11:14:58 +0000	[thread overview]
Message-ID: <603140b604092904145cea39b@mail.gmail.com> (raw)
In-Reply-To: <603140b6040928154752febf20@mail.gmail.com>

I ran across one called culprit
(http://freshmeat.net/projects/culprit.pl/), which does kinda what I
want. However, by the looks of things it doesnt look like its going to
be easy to maintain a database of user bandwidth usage using it. I
might see what I can do about modifying it, but I'm shocking at perl :)

Netfilter sounds like a much saner idea - how would you grab the user
a packet belongs to when you parse the logfiles?
Thanks,
Patrick

 
> On Wed, 29 Sep 2004 12:49:34 +0200, Daniel Frederiksen
> <cyberdoc@cyberdoc.dk> wrote:
> > Hej Patrick
> >
> > Again there might be to ways I think. You could log the traffic via
> > libpcap or netfilter.
> >
> > Netfilter could be set up to log specific traffic and afterwords you
> > could parse the logfile and flush it. The collected data could then be
> > put into a RRD base and graphed. The parsing of the logfiles is quite
> > simple.
> >
> > Libpcap can do pretty much the same. However it might use up more CPU
> > and memory in the process. I guess I could whip up a perlscript that
> > uses libpcap to do that, if you don't know how.
> >
> > There are other projects out there resembling all this, but with a lot
> > of other features included. Although I can't remember them at the time.
> > *ponders*. If it comes back to me I'll post it.
> >
> > Best regards
> > Daniel Frederiksen, Cyberdoc.dk
> >
> >
> >
> > On Wed, 2004-09-29 at 00:47, Patrick Coleman wrote:
> > > Thanks for those links. I'm building this server from scratch, so
> > > kernel recompiling is fine. But will these tools be able to monitor
> > > the bandwidth of individual users on the server itself? I realise you
> > > grab the apache logs to monitor bandwidth for web servers, but what
> > > about other services, say ssh, scp or wget? Is there an way to log the
> > > total amount of data passing through an interface? Is this possible?
> > > Thanks for your help,
> > > Patrick
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> >
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2004-09-29 11:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 22:47 [LARTC] Re: Bandwidth Metering Patrick Coleman
2004-09-29 10:49 ` Daniel Frederiksen
2004-09-29 11:14 ` Patrick Coleman [this message]
2004-09-29 17:09 ` Daniel Frederiksen
2004-09-29 22:45 ` Patrick Coleman

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=603140b604092904145cea39b@mail.gmail.com \
    --to=blinken@gmail.com \
    --cc=lartc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox