A simple Ruby script to email me if a site is down.
ruby simple-site-emailer.rb --site https://google.com --pattern body --address smtp.someserver.com --user myusername --pass mypassword --domain mydomain --email me@mydomain
I use a cron job to run the program every twenty min.
*/20 * * * * /usr/bin/ruby ~/simple-site-emailer/simple-site-emailer.rb --site https://google.com --pattern body --address smtp.someserver.com --user myusername --pass mypassword --domain mydomain
We needed a method for notifiing ourselfs when an internal web app goes down. Uptime monitoting services would not work because the app is only accessable from the inside.