expanded statistics with minimal pinging
by Skaperen from LinuxQuestions.org on (#5A5TB)
i have written a script that pings a remote host and reports the statistics for the specified time period. it repeats after each period is done. i can specify the period on the command line. i run this all evening and look at the tail of the output log if i experience network delays.
now i want to do more than one period at a time, like one doing 5 minutes, one doing 1 minute, and one doing 20 seconds. but that would mean 3 times as many pings.
are there any programs that can show stats grouped in any period size with one ping only per second (so my network traffic is not increased)?
an implementation is 1st preferred in Python3 and 2nd preferred in C.


now i want to do more than one period at a time, like one doing 5 minutes, one doing 1 minute, and one doing 20 seconds. but that would mean 3 times as many pings.
are there any programs that can show stats grouped in any period size with one ping only per second (so my network traffic is not increased)?
an implementation is 1st preferred in Python3 and 2nd preferred in C.