Skip to content

Instantly share code, notes, and snippets.

@kevinxhan
Last active June 10, 2016 10:24
Show Gist options
  • Save kevinxhan/50866d46c4823f35359c4d1cabf74506 to your computer and use it in GitHub Desktop.
Save kevinxhan/50866d46c4823f35359c4d1cabf74506 to your computer and use it in GitHub Desktop.
chronos web server check script
web server 응답을 주기적으로 check하도록 chronos job에 등록한다.
resp=$(curl -s -w "%{http_code}\\n" http://www.daum.net/ -o /deu/null);if [[ "$resp" != "200" ]];then curl "http://api.noti.daumkakao.io/send/personal/kakaotalk?to=kelvin.han&msg=error"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment