|
Home > Archive > Red Hat Networking > February 2004 > Looking for bandwidth "counter"
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Looking for bandwidth "counter"
|
|
| anon232 2004-02-12, 5:34 pm |
| I'm looking for something that will give me bandwidth totals for each
day/week/month, etc. webminstats has a really nice bandwidth meter but it's
only for real time..haven't found any way to get totals out of it.
Something easy to set up would be nice...mrtg setup is just too much of a
pain in the butt.
Any suggestions would be much appreciated! =)
thanks in advance,
Jdz
| |
| Jacob Heider 2004-02-12, 5:34 pm |
| On Fri, 13 Feb 2004 00:59:44 -0600, anon232 wrote:
> I'm looking for something that will give me bandwidth totals for each
> day/week/month, etc. webminstats has a really nice bandwidth meter but it's
> only for real time..haven't found any way to get totals out of it.
> Something easy to set up would be nice...mrtg setup is just too much of a
> pain in the butt.
> Any suggestions would be much appreciated! =)
> thanks in advance,
>
> Jdz
How do you count bandwidth over some unit of time? Do you perhaps mean you
want to log the number/size of packets traveling to an from some
interface? Consider 'man iptraf' (once you've installed iptraf) for
logging. Also, if you just want a snapshot of an interface, ifconfig gives:
wlan0 Link encap:Ethernet HWaddr 00:09:5B:4C:00:E2
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:147291 errors:0 dropped:0 overruns:0 frame:0
TX packets:111656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:215877716 (205.8 Mb) TX bytes:3539767 (3.3 Mb)
Interrupt:3 Base address:0x100
which has both packet and byte totals since the interface was brought up.
You could always modify ifup/ifdown to save the totals to some log file.
Or, if your interface is always up, just take a snapshot of the ifconfig
output on a weekly basis. A little bit of simple scripting in bash, AWK or
Perl will allow you pull any number you want, subtract some other number,
then divide by some number.
GL
Jacob
| |
|
| Thanks for your reply! I'll try iptraf and see if it will do it, if not I'll
try your sugjestion to pull the info from ipconfig and log it.
jdz
"Jacob Heider" <lord-jacob@comcast.net> wrote in message
news:8083e52d1a08ad0526235224d119ce8d@ne
ws.teranews.com...
> On Fri, 13 Feb 2004 00:59:44 -0600, anon232 wrote:
>
it's[color=blue]
a[color=blue]
>
> How do you count bandwidth over some unit of time? Do you perhaps mean you
> want to log the number/size of packets traveling to an from some
> interface? Consider 'man iptraf' (once you've installed iptraf) for
> logging. Also, if you just want a snapshot of an interface, ifconfig
gives:
>
> wlan0 Link encap:Ethernet HWaddr 00:09:5B:4C:00:E2
> inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:147291 errors:0 dropped:0 overruns:0 frame:0
> TX packets:111656 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:215877716 (205.8 Mb) TX bytes:3539767 (3.3 Mb)
> Interrupt:3 Base address:0x100
>
> which has both packet and byte totals since the interface was brought up.
> You could always modify ifup/ifdown to save the totals to some log file.
> Or, if your interface is always up, just take a snapshot of the ifconfig
> output on a weekly basis. A little bit of simple scripting in bash, AWK or
> PERL will allow you pull any number you want, subtract some other number,
> then divide by some number.
>
> GL
> Jacob
| |
| Scott Lurndal 2004-02-13, 5:34 am |
| "anon232" <anon232@nowhere.com> writes:
>I'm looking for something that will give me bandwidth totals for each
>day/week/month, etc. webminstats has a really nice bandwidth meter but it's
>only for real time..haven't found any way to get totals out of it.
>Something easy to set up would be nice...mrtg setup is just too much of a
>pain in the butt.
>Any suggestions would be much appreciated! =)
>thanks in advance,
>
>Jdz
>
Redhat 8 included mrtg
$ rpm -q mrtg
mrtg-2.9.17-8
which gives historical bandwith usage. It runs under apache and generates
nice graphs.
scott
|
|
|
|
|