Skip to content

Instantly share code, notes, and snippets.

@haron
Last active December 7, 2016 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haron/8b7500a48c51b6ec734045bc7739bfda to your computer and use it in GitHub Desktop.
Save haron/8b7500a48c51b6ec734045bc7739bfda to your computer and use it in GitHub Desktop.

How to get (almost) free monitoring calls via UptimeRobot and Nexmo

IMPORTANT: Nexmo calls are not free. You should pay on per-call basis according to their voice pricing. This shouldn't be a huge concern unless your website goes down twice a day.

  1. Create accounts at https://uptimerobot.com/ and https://nexmo.com/ (you'll get €2 welcome credit from Nexmo).

  2. Add your phone number to Nexmo, then get your API key and secret at settings.

  3. Go to UptimeRobot settings.

  4. Press "Add Alert Contact" and choose "Web-Hook".

  5. Fill in fields as follows and save changes:

     URL to Notify: https://api.nexmo.com/tts/json?
     POST Value (JSON Format): {
         "api_key": "YOUR_NEXMO_KEY",
         "api_secret": "YOUR_NEXMO_SECRET",
         "text": "Hi, this is monitoring system. *monitorFriendlyName* website is *alertTypeFriendlyName*",
         "to": "YOUR_PHONE_NUMBER"
     }
    
    • "Send as JSON" should be unchecked.
    • Please note the question mark at the end of the URL: it is required.
    • *monitorFriendlyName* and *alertTypeFriendlyName* are replaced with actual values by UptimeRobot.
  6. Consider upgrading to UptimeRobot Pro plan to get 1 minute monitoring interval and support their good service.

  7. Good luck with monitoring!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment