Advice needed on Pi CPU usage

This will get you started: Ping Network Devices From a List - #12 by Steve-Mcl

you could break it up so that 5sec after issuing ping, check the results in context & send a telegram accordingly.