Now for a really easy way to be notified when an URL goes down:
email=$(/bin/cat <<!
From: URL Monitor <urlmonitor@localhost>
To: $2
Subject: $1 is down!
!)
/usr/bin/curl -f $1 || echo "$email" | /usr/sbin/sendmail -t
Just put it in your crontab as urlmonitor.sh <URL to check> <email address>.


