Gping – ping, but with a graph
github.com
github.com
For instance, `gping mydomain.com google.com` is really nice for a quick sanity check (is it my Wifi or my hosting provider).
It doesn't graph output, but does show connectivity , latency, packet loss, and variance on a set of hosts between your IP and the destination.
<https://www.bitwizard.nl/mtr/>
(Previously noted in this thread by westurner: <https://news.ycombinator.com/item?id=36549005>)
I know there's a GUI version, though I'm almost always using the CLI/terminal interface myself. So I could be missing some things.
Oh, holy hell, this is pretty cool!
Thanks!
(I've ... only been using mtr for ~2 decades.)
It's very difficult to stay on top of all available tools. I find that so long as it's something I can do with shell tools, awk, or other scripting environments I'm often better of inventing than searching as when you create your own tools you're addressing your own specific needs and constraints, whilst when evaluating a third-party tool, you have to undergo much the same process ("does this do what I want it to do?") often without the ability to readily modify the tool to fit a specific use case.
That's not always true, but it often is.
And of course, creation helps expand your own creative abilities.
If mtr is frequently re-invented, that's a strong validation of the original concept as well.
> The tool is often used for network troubleshooting. By showing a list of routers traversed, and the average round-trip time as well as packet loss to each router, it allows users to identify links between two given routers responsible for certain fractions of the overall latency or packet loss through the network.[4] This can help identify network overuse problems.[5]
Scapy has a 3d visualization of one traceroute sequence with vpython. In college, I remember modifying it to run multiple traceroutes and then overlaying all of the routes; and wondering whether a given route is even stable through a complete traceroute packet sequence. https://scapy.readthedocs.io/en/latest/usage.html#tcp-tracer...
One way to avoid running tools that need root for crafting packets at layer 2 is to use setcap:
setcap CAP_NET_RAW /use/bin/python-scapy
Does traceroute inappropriately connect the dots?I have it set up to do trace routes to 1.1.1.1 and to 8.8.8.8, and then I can look at the graphs in Prometheus
I was inspired to set this up on my computer after the house where the computer is at was having very unstable internet for several days.
I made a video about the graphs here https://video.nstr.no/w/hjTH3Vggn2fvpTrQitMmVP
graph-drawing gh topic lists a number of JS libraries: https://github.com/topics/graph-drawing
Is there a good way to make a JS screensaver that doesn't leak memory yet? Maybe WebGL could get that done
I noticed that if I used "-4" with a host that has both ipv4 and ipv6 addresses it still pings the ipv6 address despite displaying the ipv4 address. Do others here experience that? I'm on version 1.8.0.
On the rare occasion I need feedback while messing around with cabling. I did write an improvised tool for the purpose, but it's kind of crappy in that it's just around ping.
Behold the power of 'pingu': https://pastebin.com/qTfdZ7C8
Make sure you understand what MTR actually shows and why.
t/o is timeouts by the way
It did not last long and it seemed to be abandoned, and popular Linux distros stopped carrying it as a package. I'm not aware of another tool that can perform the same measurements.
Post showing multiline plot of ping to multiple hosts: https://mastodon.social/@guptarohit/110638311512899264
How has there not been some basic image/data steaming built in, after all of these decades? Why am I writing scripts that parse human text output?
For example, the easiest way I’ve found to render generated images into a gif or mp4 is to pipe a sequence of ppm-encoded images into ffmpeg.
gping ftlping.nethost can be a command like curl google.com if the --cmd flag is used.