use Net::Ping instead of the command ping

tags: