WebPagetest Forums
Traceroute from test agents - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Announcements (/forumdisplay.php?fid=8)
+--- Thread: Traceroute from test agents (/showthread.php?tid=536)

Traceroute from test agents - pmeenan - 02-10-2011 04:40 AM

You can now run traceroutes from the test agents through the web UI. It's still pretty experimental but you can get to it here: http://www.webpagetest.org/traceroute

Here is a sample traceroute to o.aolcdn.com from the Dulles test agent: http://www.webpagetest.org/result/110209_5R_3TJV/

When there's no response you'll get a blank entry (may update this to display a * so it looks more like the command-line). The traceroutes are done with ICMP for now (eventually I'd like to implement it as a TCP port-80 traceroute but that's a lot harder to do on Windows than it should be).

As always, feedback (particularly suggestions/bugs) appreciated.



RE: Traceroute from test agents - RichardBishop - 12-20-2012 11:01 PM

I installed a private instance as a proof of concept exercise (I'm hoping to host a public instance for you early next year from a Data Centre in Manchester, UK).

After installation, I checked to see if I could run a traceroute test from my site in t e same way that I can from the public site in Dulles.

http://<MYSERVER>/traceroute returns an error and I don't seem to have a www/traceroute folder in my installation. Do I need to get the source for this somewhere else?

Sorry for the newbie question.
P.S. Fantastic site and great product ! :-)

RE: Traceroute from test agents - pmeenan - 12-22-2012 07:38 AM

My guess is that it is related to rewrite and the code isn't creating the non-rewrite version of the traceroute url correctly. If you navigate to /traceroute.php (I think that's it) you should see the UI.

RE: Traceroute from test agents - RichardBishop - 12-22-2012 08:00 AM

Thanks Patrick, your advice was spot on. I'll fix a rewrite rule so goes to >

RE: Traceroute from test agents - pmeenan - 12-22-2012 08:11 AM

The rewrite rule should already be in place - http://code.google.com/p/webpagetest/source/browse/trunk/www/webpagetest/.htaccess#12

What are you using for a web server? If it's apache then you just need to install mod_rewrite. If it's nginx then you can include the nginx.conf

Usually the code detects when rewrite isn't available and uses the native .php urls but I probably missed it in this instance.