Skip to contentSkip to conversation

bw console monitoring

LARTC Kristiadi Himawan 5 participants 9 messages May 13, 2002 – May 14, 2002

lore
Share & tools
lore
#1 lore raw
Quoted 6 lines · Kristiadi Himawan

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.

Signature · 6 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Kristiadi Himawan
Quoted 5 lines · Kristiadi Himawan

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

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Kristiadi Himawan

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
Quoted 11 lines · bert hubert
Quoted 5 lines · Kristiadi Himawan

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.

Signature · 9 lines
Joe Ellis
http://www.lithodyne.net
Mar 14:38

IRC: #flux on irc.linux.com

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Kristiadi Himawan
Quoted 9 lines · Joe Ellis

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

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Kristiadi Himawan

no. its just a bw console monitoring tool.

Quoted 16 lines · Stef Coene
Quoted 9 lines · Joe Ellis

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

Signature · 9 lines
Joe Ellis
http://www.lithodyne.net
Mar 14:38

IRC: #flux on irc.linux.com

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#6 lore raw
In reply to Kristiadi Himawan
|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,

Quoted 1 line

--<Kristiadi Himawan>--<

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#7 lore raw
In reply to Kristiadi Himawan
Quoted 5 lines

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

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#8 lore raw
In reply to Kristiadi Himawan
Quoted 5 lines · Kristiadi Himawan

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/