Live data from Hacker News

Using AWS Lambda to call and text you when your servers are down

thisdata.com

21–30 of 55 posts

Re: Using AWS Lambda to call and text you when your servers are down

#21

I don't know if everyone knows this but you can make texts using email. Most providers have SMTP gateways for SMS services. Verizon runs @vtext.com

Just keep in mind that these aren't incredibly reliable across the board. Others have very low or arbitrary autoban or blacklist policies. I eventually caved and paid Twilio to hassle with SMS logistics for me, rather than deal with the weirdness.

Re: Using AWS Lambda to call and text you when your servers are down

#23

Earlier quoted context omitted.

Apex ping is great, but I'm still waiting for SMS / Twilio integration (hint, hint, nudge nudge) :)

:D I wish SMS wasn't so awkward, you're pretty much forced to have a credit system since it's so expensive. I'll probably still do it at some point. Makes it awkward for the customer as well if you have to babysit the credits

You should just allow your users to provide their own Twilio API credentials and pass the costs to the user. You can even only make this option available on your plus and pro plans, increasing your ARPU[1].

[1] https://en.wikipedia.org/wiki/Average_revenue_per_user

Re: Using AWS Lambda to call and text you when your servers are down

#24
post #2

From a engineering point of view this is really cool, but as an ex-sysadmin I feel that I need to reiterate and emphasize something that is alluded to in the second paragraph. Too many things can go wrong and you are all around better off outsourcing this to something like Pingdom. You don't have sufficient levels of reliability, you aren't dual homed across twilio and another phone system. Maybe the cause of your ou…

Yep, plus most engineering time is worth at minimum $60+/h, which would pay for a year or more with most of these services.

On the other hand, it's 'set up once and it just keeps chugging along', and isn't Yet Another SaaS To Manage.

Also, if you want a 'proper' ops alerting SaaS, you're looking at something along the lines of $50/user/mo or $15/server/mo, neither of which is trivial.

Re: Using AWS Lambda to call and text you when your servers are down

#25

Note: instead of dynamodb for the lookup mentioned at the bottom, maybe consider https://aws.amazon.com/athena/ for an s3 query

You could literally just store a .CSV file in S3 with a table that has the on-call schedule in it and run SQL queries against Athena that would be cheap... you'd be querying a few KB, but DynamoDB is probably better for this use case, honestly. Athena is great for scanning huge datasets very quickly.

Re: Using AWS Lambda to call and text you when your servers are down

#26
post #3

And I'm sure Lambda will never go down. Right? Right?? (It has. Completely and silently stopped processing against Kinesis queues for a few hours recently. Guess what AWS Step is built on?)

Of course it can go down, and you can have CloudWatch alerts to alert you about that. But so can your Nagios server sending pings go down or the fancy SaaS you signed up for.

Re: Using AWS Lambda to call and text you when your servers are down

#28
post #2

From a engineering point of view this is really cool, but as an ex-sysadmin I feel that I need to reiterate and emphasize something that is alluded to in the second paragraph. Too many things can go wrong and you are all around better off outsourcing this to something like Pingdom. You don't have sufficient levels of reliability, you aren't dual homed across twilio and another phone system. Maybe the cause of your ou…

HN top comments are getting way too predictable.

Re: Using AWS Lambda to call and text you when your servers are down

#29

Earlier quoted context omitted.

I suggested it before, but I think you can work around it: Let your customers give you their Twilio API key (with a big disclaimer that any charges by Twilio are not your responsibility...).

If I can get costs down elsewhere I'll maybe just do "unlimited" on some of the accounts, where "unlimited" is some large arbitrary number haha.

That would be the nicest user experience for your users, but it is a bit risky. You probably have a "reasonable number of notifications per user per month" in mind. As you sign up new users, you will sooner or later get some that will exceed that number by a lot--without a malicious intent.

Re: Using AWS Lambda to call and text you when your servers are down

#30
post #7

I wrote something similar in bash and put it into a docker image: https://hub.docker.com/r/simplepush/alerta Just running this docker image on a server you want to monitor is enough. Instead of Twilio it uses Simplepush ( https://simplepush.io ).

Simplepush looks like a cool service - thanks for the heads up. It seems that it accomplishes the author's main need - that for a constant buzzing which needs to be picked up and dealt with. EDIT: Just seen that it is Android only! :-/

If you need something similar that works on iOS (and Android), take a look at https://pushover.net/

I use it for some personal automation scripts that might need to get my attention if something goes wrong.

Post reply on HN