Best way to "ping" a node?

What's the best way to "ping" a node to see if it's alive? I'm working on a dashboard status script for my node and I want a heartbeat process to "ping" the node like every 30 seconds to see if it's alive. How would I do this?

Probably to send a telemtry_req message and listen for the associated telemtry_ack