https://www.tuxnoob.com/posts/use-shell-script-for-check-ping-to/
Use Shell Script For Check Ping To Remote Host And Port Opened - Tuxnoob