No way to ping?

So I thought I'd start my journey into app development with something REALLY simple: checking if a network device is alive and notifying me if not.
Turns out that this is not simple at all. Started researching on Smartthings forums as well and was surprised that there is really no easy way to do it. The only reliable method is having a program/script run on an external device which is then called from HE/Smartthings.

Am I missing something? Thought I could use HE to check on a couple network devices (e.g. managed network switch) that sometimes seem to lose connections.

Also tried java.net.InetAddress but got an error for every method I tried to call.

Maybe a DH that telnet into a linux box somewhere and perform ping command?