All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] bw console monitoring
@ 2002-05-13 13:23 Kristiadi Himawan
  2002-05-13 15:31 ` bert hubert
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Kristiadi Himawan @ 2002-05-13 13:23 UTC (permalink / raw)
  To: lartc


Hi,
I want to see bandwidth every ip address in the local network that passing
my linux gateway in the console, may be it's similar like mrtg (web based
version)
It's possible ?


      Best regards,    
>--<Kristiadi Himawan>--<



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
@ 2002-05-13 15:31 ` bert hubert
  2002-05-13 17:18 ` Stef Coene
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bert hubert @ 2002-05-13 15:31 UTC (permalink / raw)
  To: lartc

On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote:
> 
> Hi,
> I want to see bandwidth every ip address in the local network that passing
> my linux gateway in the console, may be it's similar like mrtg (web based
> version)
> It's possible ?

iptraf or trafshow may help.

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
  2002-05-13 15:31 ` bert hubert
@ 2002-05-13 17:18 ` Stef Coene
  2002-05-13 17:22 ` Joe Ellis
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stef Coene @ 2002-05-13 17:18 UTC (permalink / raw)
  To: lartc

On Monday 13 May 2002 15:23, Kristiadi Himawan wrote:
> Hi,
> I want to see bandwidth every ip address in the local network that passing
> my linux gateway in the console, may be it's similar like mrtg (web based
> version)
> It's possible ?
Yes

If you don't have to much ip addresses, you can create for each address a 
iptables rule.  You can use the byte counters of iptables to calculate the 
bandwidth.  And you can plot the data directly with rrd or feed them to mrtg.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
  2002-05-13 15:31 ` bert hubert
  2002-05-13 17:18 ` Stef Coene
@ 2002-05-13 17:22 ` Joe Ellis
  2002-05-13 17:48 ` Stef Coene
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Joe Ellis @ 2002-05-13 17:22 UTC (permalink / raw)
  To: lartc

there is also bwm.  it is very basic though. not as advanced as iptraf 
or trafshow, but it gives kbytes in and out of the interfaces.  below is 
a snipit.

        Iface        RX(KB/sec)   TX(KB/sec)   Total(KB/sec)

           lo            0.000        0.000           0.000
         eth0           52.160       64.539         116.699
       dummy0            0.000        0.000           0.000


bert hubert wrote:
> On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote:
> 
>>Hi,
>>I want to see bandwidth every ip address in the local network that passing
>>my linux gateway in the console, may be it's similar like mrtg (web based
>>version)
>>It's possible ?
> 
> 
> iptraf or trafshow may help.
> 


-- 
Joe Ellis
http://www.lithodyne.net
Mar 14:38

IRC: #flux on irc.linux.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
                   ` (2 preceding siblings ...)
  2002-05-13 17:22 ` Joe Ellis
@ 2002-05-13 17:48 ` Stef Coene
  2002-05-13 18:21 ` Joe Ellis
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Stef Coene @ 2002-05-13 17:48 UTC (permalink / raw)
  To: lartc

On Monday 13 May 2002 19:22, Joe Ellis wrote:
> there is also bwm.  it is very basic though. not as advanced as iptraf
> or trafshow, but it gives kbytes in and out of the interfaces.  below is
> a snipit.
>
>         Iface        RX(KB/sec)   TX(KB/sec)   Total(KB/sec)
>
>            lo            0.000        0.000           0.000
>          eth0           52.160       64.539         116.699
>        dummy0            0.000        0.000           0.000
Can it also monitor / ip-address ?

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
                   ` (3 preceding siblings ...)
  2002-05-13 17:48 ` Stef Coene
@ 2002-05-13 18:21 ` Joe Ellis
  2002-05-14  5:07 ` Kristiadi Himawan
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Joe Ellis @ 2002-05-13 18:21 UTC (permalink / raw)
  To: lartc

no.  its just a bw console monitoring tool.

Stef Coene wrote:
> On Monday 13 May 2002 19:22, Joe Ellis wrote:
> 
>>there is also bwm.  it is very basic though. not as advanced as iptraf
>>or trafshow, but it gives kbytes in and out of the interfaces.  below is
>>a snipit.
>>
>>        Iface        RX(KB/sec)   TX(KB/sec)   Total(KB/sec)
>>
>>           lo            0.000        0.000           0.000
>>         eth0           52.160       64.539         116.699
>>       dummy0            0.000        0.000           0.000
> 
> Can it also monitor / ip-address ?
> 
> Stef
> 


-- 
Joe Ellis
http://www.lithodyne.net
Mar 14:38

IRC: #flux on irc.linux.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
                   ` (4 preceding siblings ...)
  2002-05-13 18:21 ` Joe Ellis
@ 2002-05-14  5:07 ` Kristiadi Himawan
  2002-05-14  8:40 ` Stef Coene
  2002-05-14  9:38 ` Pavel Mores
  7 siblings, 0 replies; 9+ messages in thread
From: Kristiadi Himawan @ 2002-05-14  5:07 UTC (permalink / raw)
  To: lartc

|On Mon, 13 May 2002, Stef Coene wrote:
|
|If you don't have to much ip addresses, you can create for each address a 
|iptables rule.  You can use the byte counters of iptables to calculate the 
|bandwidth.  And you can plot the data directly with rrd or feed them to mrtg.
|
|Stef
|
|-- 

I already do that before and i have tried bwm and iptraf (nice tools with
filtering) too, but still can't do bw console monitoring for each ip
address that forwarded.
May be anyone ever try to dump byte calculated by ipchain or iptables not
to rrd or mtrg but to console ? 
Any suggestions ?

      Best regards,    
>--<Kristiadi Himawan>--<

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
                   ` (5 preceding siblings ...)
  2002-05-14  5:07 ` Kristiadi Himawan
@ 2002-05-14  8:40 ` Stef Coene
  2002-05-14  9:38 ` Pavel Mores
  7 siblings, 0 replies; 9+ messages in thread
From: Stef Coene @ 2002-05-14  8:40 UTC (permalink / raw)
  To: lartc

> I already do that before and i have tried bwm and iptraf (nice tools with
> filtering) too, but still can't do bw console monitoring for each ip
> address that forwarded.
> May be anyone ever try to dump byte calculated by ipchain or iptables not
> to rrd or mtrg but to console ?
I did both.  I have script that uses ipables and generates some html or text 
output  (http://qos.dyndns.org:8080/cgi-bin/monitor.pl it's not working all 
the time) and a script that uses tc and rrd to create some graphs: 
http://home.docum.org/stef.coene/qos/gui/rrd.html.
I'm working on the second script to also include the output of iptables.

Mail me if you want to try them out and you need some help.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [LARTC] bw console monitoring
  2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
                   ` (6 preceding siblings ...)
  2002-05-14  8:40 ` Stef Coene
@ 2002-05-14  9:38 ` Pavel Mores
  7 siblings, 0 replies; 9+ messages in thread
From: Pavel Mores @ 2002-05-14  9:38 UTC (permalink / raw)
  To: lartc

On Mon, May 13, 2002 at 08:23:27PM +0700, Kristiadi Himawan wrote:

> Hi,
> I want to see bandwidth every ip address in the local network that passing
> my linux gateway in the console, may be it's similar like mrtg (web based
> version)
> It's possible ?

(I replied yesterday but my message didn't make it through somehow)

Why don't you try WIPL?  It's available from the same site as the WRR
qdisc (http://wipl-wrr.sourceforge.net/) and even though it looks a bit
beta it was able to do for me what I haven't found elsewhere.  Namely,
it took about half an hour to set it up so that it outputs a list of IP
addresses for which traffic has been seen currenly, sorted by the traffic
rate (so that the biggest downloaders are at the top). The traffic rate
is computed based on last 60 seconds' traffic, refreshed every 10
seconds (both configurable, of course).  I set wiplc to output the list
in HTML (configurable, too).  So now I have a URL where I can go to see
top network users *at real time*.  It doesn't do graphs, sure, but I use
rrdtool for graphing anyway.

The best thing is that WIPL's architecture is very modular and
extensible so you can do a lot of thing with its output (e.g. run it
through arbitrary CGI's or even store the values and graph them later if
you really feel the need).

There's one problem, though - wipld doesn't seem to age entries in its
address cache so no matter how big I set the cache, it always overflows
in the end.  I haven't gotten around yet to reporting the bug, though.

	pvl

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-05-14  9:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-13 13:23 [LARTC] bw console monitoring Kristiadi Himawan
2002-05-13 15:31 ` bert hubert
2002-05-13 17:18 ` Stef Coene
2002-05-13 17:22 ` Joe Ellis
2002-05-13 17:48 ` Stef Coene
2002-05-13 18:21 ` Joe Ellis
2002-05-14  5:07 ` Kristiadi Himawan
2002-05-14  8:40 ` Stef Coene
2002-05-14  9:38 ` Pavel Mores

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.