curl -sSf --max-time 120 'https://websitetomonitor.url' --compressed || echo "do something with alarm on failure"
-s means silent
-S show error
-f Fail silently (no output at all) on server errors
--max-time maximum time allowed for request
Cronjob every 2 minutes
*/2 * * * * /usr/local/bin/ch...
Read more