Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Created November 10, 2015 06:12
Show Gist options
  • Save martinrusev/746082ea9c230adfa11b to your computer and use it in GitHub Desktop.
Save martinrusev/746082ea9c230adfa11b to your computer and use it in GitHub Desktop.
Ping check
ping -c 1 google.com &> /dev/null && echo "OK - Ping to google.com successful" || echo "CRITICAL - Cant ping google.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment