Simple bash script to test ping on multiple destinations.
Infinite loop test.
Only unreachable destinations are logged.
Install parallel on your system:
apt install parallel
parallelping <hostlist> <seconds_between_each_test> [outputfilename]
Hosts are listed one per line, no commas.