Crash Hound lets you script monitoring and lets you receive notifications directly on your mobile phone.
It works via Tropo and a http://tropo.com acocunt is required.
For more information check out:
- http://amix.dk/blog/post/19637#Monitor-anything-and-get-SMS-notifications
- http://amix.dk/blog/post/19625#International-SMS-messaging-The-cheap-way
To install it do following:
sudo easy_install crash_hound
Example of list wrapper:
from crash_hound import CrashHound, ReportCrash, CommonChecks, SenderTropo
def check_fn():
if 42:
raise ReportCrash('42 is true!')
else:
pass #Ignore
#--- Configure sender and checker ----------------------------------------------
crash_sender = SenderTropo('YOUR TROPO.COM API KEY',
'+56 ... YOUR MOBILE NUMBER ...')
crash_checker = CrashHound(crash_sender)
crash_checker.register_check('42 Checker',
check_fn,
notify_every=60)
crash_checker.register_check('Google.com Blah test',
lambda: CommonChecks.website_check('http://google.com/blah'),
notify_every=60)
crash_checker.run_checks(check_interval=10)
Example of email notifications using the SendGrid SMTP sever:
from crash_hound import CrashHound, CommonChecks, SenderMail
#--- Configure sender and checker ----------------------------------------------
crash_sender = SenderMail('EMAIL TO', 'EMAIL FROM', 'smtp.sendgrid.net', 'SENDGRID USER', 'SENDGRID PASSWORD')
crash_checker = CrashHound(crash_sender)
crash_checker.register_check('Google.com Blah test',
lambda: CommonChecks.website_check('http://google.com/blah'),
notify_every=60)
crash_checker.run_checks(check_interval=10)