Live data from Hacker News

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

thisdata.com

11–20 of 55 posts

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

#11
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! :-/

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

#12

I wrote Apex Ping ( https://apex.sh/ping/ ) for those who want more features and/or don't want to waste the time to save a few bucks :D.

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

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

#14

I wrote Apex Ping ( https://apex.sh/ping/ ) for those who want more features and/or don't want to waste the time to save a few bucks :D.

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

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

#15
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…

My favorite issue recently came up with a Django app of mine which was set up to email me when a request errors out. Turns out, when I switched which server it ran on I misconfigured the email settings and one of the errors was caused due to the inability to send an email. Thankfully it only took a few days to figure this out.

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

#16
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…

> Now your site and your monitoring is down. Much better to outsource to people who obsess over doing this right and making sure they are properly redundant.

You make valid points about redundancy and levels of reliability but keep in mind that even Pingdom can go down: http://royal.pingdom.com/2016/10/24/ddos-attack-affects-ping...

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

#17

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

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...).

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

#18

I wrote Apex Ping ( https://apex.sh/ping/ ) for those who want more features and/or don't want to waste the time to save a few bucks :D.

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

I now use okmeter.io and really happy (especially for nginx and Postgres monitoring). They improve it constantly, and installation took just a couple of minutes. SMS/email/slack notifications work great (however, for slack, I needed to put a webhook).

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

#19

Earlier quoted context omitted.

: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

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.

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

#20
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…

> Now your site and your monitoring is down. Much better to outsource to people who obsess over doing this right and making sure they are properly redundant. You make valid points about redundancy and levels of reliability but keep in mind that even Pingdom can go down: http://royal.pingdom.com/2016/10/24/ddos-attack-affects-ping...

Chances are that pingdom won't be down at the same time that your site is down.

Diversify to avoid cascading failures ;)

Post reply on HN