Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true
- do
- if curl -s --head --request GET https://example.com | grep "200 OK" > /dev/null; then
- echo "its okay"
- else
- aws sns publish --topic-arn arn:aws:sns:x:x:x \
- --subject "Its dead"
- fi
- sleep 5
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement