use the ping library to check servers that are online
require 'ping' puts "Pong!" if Ping.pingecho('http://www.google.com/', 5)