This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Welcome to the Ranch, James!
If you know the interval at which linux pings packets, maybe you can write a program which talks to linux runtime.
It can then hit the ping command and start a thread at the specified interval to read response from the Runtime.
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"