Skip to content

Periodically checks other sites, sending SMS messages when errors found in html

License

Notifications You must be signed in to change notification settings

steenhansen/crash-sms

Repository files navigation

Crash-sms - Deprecated

Crash-sms is a Clojure program that runs on Heroku at https://fathomless-woodland-85635.herokuapp.com/ which checks a list of websites every 2 hours and texts a list of phones when a website does not conform to a valid state. Non cached website pages are checked for database, WordPress, and Node.js errors and or crashes. The Heroku add-on Till Mobile handles the SMS messaging, while Temporize Scheduler add-on handles the cron jobs.

System Setup:

Compile crash-sms in Emacs with Cider

M-x load-file /crash-sms/src/core.clj
M-x cider-jack-in
M-x cider-ns-refresh
M-x cider-repl-set-ns
Serve crash-sms with memory database
core> (-local-main USE_FAKE_DB LOCAL_CONFIG)
Serve crash-sms with MongoDB
core> (-local-main USE_MONGER_DB LOCAL_CONFIG)
Serve crash-sms with DynamoDB
core> (-local-main USE_AMAZONICA_DB LOCAL_CONFIG)
Serve crash-sms with Heroku MongoDB
core> (-local-main USE_MONGER_DB HEROKU_CONFIG)
Run tests with mock database
core-test> (mock-tests)
Run tests with both a MongoDb and a DynamoDB database
core-test> (all-tests)

Last two months data
http://localhost:8080/
Cron job to check web pages
http://localhost:8080/cron-execution-test
SMS test
http://localhost:8080/sms-send-test

Heroku Config Vars

visual explanation

Temporize Cron Config Vars
:CRON_URL_DIR

visual explanation

Till SMS Config Vars
:PHONE_NUMBERS 
:SEND_TEST_SMS_URL
:TILL_API
:TILL_USERNAME

visual explanation

About

Periodically checks other sites, sending SMS messages when errors found in html

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published