Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to monitor internet speed in real time?

by matija (Priest)
on Oct 05, 2004 at 12:01 UTC ( #396551=note: print w/ replies, xml ) Need Help??


in reply to How to monitor internet speed in real time?

What is "internet speed" to you? Is it derived as

    distance_flown_by_the_internet
---------------------------------------
time_when_it_lands-time_when_I_threw_it
Or is it the speed of data through your internet interface? If the later, I use the following script as an input to MRTG graph:
open(INP,"</proc/net/dev") || die "Can not open /proc/net/dev: $!"; while (<INP>) { s/eth0:(\d)/eth0: $1/; @a=split; print "$a[1]\n$a[9]\n" if ($a[0]=~s/eth0://); }
This, of course, is highly system dependent...


Comment on Re: How to monitor internet speed in real time?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://396551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-07-07 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls