Author Topic: I need a constant internet analysis tool.  (Read 1636 times)

0 Members and 1 Guest are viewing this topic.

I need a constant internet analysis tool.
Currently, our internet is rather... random. The speed is highly variable, and it's luck of the draw when or when not a webpage will load. Our new home bosses have told us to try and analyze when the internet is down to see if they can fix it.

The problem, however, is not that the internet is 'down' all the time. THe problem is that at highly irregular moments, our internet connection starts partying like it's 1995. This is rather hard to analyze with a simple pinglogger tool, so...

What I need is a tool that analyzes internet connection speeds on a set time interval, like say, every minute. Basically like the basic internet speedtests that you can find anywhere on the internet, except that it does this every minute and logs the results - preferably in a graph.

Anyone knowing such a tool?

 

Offline rev_posix

  • Administrator
  • 213
  • I have the password to your shell account...
    • Trials and Tribulations
Re: I need a constant internet analysis tool.
Give this a look, last time I looked at it, it was free as well

http://www.dslreports.com/smokeping
--
POSIX is fine, as is Rev or RP

"Although generally it is considered a no no to disagree with a mod since it's pretty much equivalent to kicking an unpaid janitor in the nuts while he's busy cleaning up somebody elses vomit and then telling them how bad they are at cleaning it up cause you can smell it down the hall." - Dennis, Home Improvement Moderator @ DSL Reports

"wow, some people are thick and clearly can't think for themselves - the solution is to remove warning labels from poisons."

 
Re: I need a constant internet analysis tool.
Ooh, that one is neat! Thanks.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: I need a constant internet analysis tool.
would imagine you could do something with wget and cron

...

OK josh, nice nerdsnipe, here is your command:

{ { date "+%Y-%m-%d %H:%M:%S," ; wget -O /dev/null http://www.google.com 2>&1 | grep -oh '\([0-9.]\+ [KM]B/s\)' ; } | xargs echo -n ; echo "" ; } >> speed.log

the last bit is the log file were the results are stored. you make yourself a cron job to run this command and you will have a csv file with "<timestamp>, <download speed>" cronicleing the speeds of downloading the google home page.

(assuming you have a linux/unix/osx box)
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 
Re: I need a constant internet analysis tool.
Strange. THe command works just fine when entered into a terminal but when entered into the cronjob it gives no errors, but no results either.

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
Re: I need a constant internet analysis tool.
maybe it's putting it in a file you didn't expect? like the cron job is running as a different user and is putting the log in that user's home directory? maybe it would work better if you put it in a script?
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Re: I need a constant internet analysis tool.
try this rather:

{ { /bin/date "+%Y-%m-%d %H:%M:%S," ; /usr/bin/wget -O /dev/null http://www.google.com 2>&1 | /bin/grep -oh '\([0-9.]\+ [KM]B/s\)' ; } | /usr/bin/xargs /bin/echo -n ; /bin/echo "" ; } >> /var/log/speed.log

as for why it doesnt work? $PATH is not set in cron, unless you explicitly set it there. i usually just do echo $PATH, take the output of that and stick it at the top of the cron, so you dont need absolute paths everywhere.
(these are the paths on ubuntu 14.04, for the record... whereis command is helpful to find the absolute paths.)
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.