Is there a simple (linux cli) tool that I can run continuously for a period of time to see if the there are any connection problems between two specific network endpoints over the wan?
One remote site is experiencing slowdowns/drops and I'm looking o figure out which side of the network is at fault.
EDIT
The accepted answer recommends 'mtr'; for future reference, mtr accepts the following relevant options:
--report
This option puts mtr into report mode. When in this mode, mtr will run for
the number of cycles specified by the -c option, and then print statistics
and exit.
This mode is useful for generating statistics about network quality.
Note that each running instance of mtr generates a significant amount of
network traffic. Using mtr to measure the quality of your network may result
in decreased network performance.
--report-cycles COUNT
Use this option to set the number of pings sent to determine both the
machines on the network and the reliability of those machines.
Each cycle lasts one second.
Take a look at mtr. It's traceroute and ping consolidated into one tool and continuously monitors the path between two hosts. You get output like that below. It's available as package mtr-tiny for Ubuntu and mtr for CentOS.
I would do this with a small shell script like this:
Run the script like this so it keeps running after you log out:
Once you have waited a suitable amount of time, you'll just need to kill the process and look through your log file. Of course this could be tweaked any which way you want.