Skip to content

Instantly share code, notes, and snippets.

@hockeybuggy
Created May 20, 2015 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hockeybuggy/e53f33b11d0518c2461b to your computer and use it in GitHub Desktop.
Save hockeybuggy/e53f33b11d0518c2461b to your computer and use it in GitHub Desktop.
Monitors status codes of two servers over time
#!/bin/bash
while :
do
curl -s -o /dev/null -w "server 1: %{http_code}\n" -d "{'fake':'data'}" http://192.168.100.10:4000/bigcommerce/webhook/ \
&& curl -s -o /dev/null -w "server 2: %{http_code}\n" -d "{'fake':'data'}" http://192.168.100.10:4001/bigcommerce/webhook/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment