Site Down Notifications (Ubunto / Wordpress)

November 11, 2015 868 views
Apache WordPress DigitalOcean Ubuntu

Hi is it possible to set up Site Down Notifications for an Ubunto / Wordpress site on Digital Ocean?

1 comment
  • You should use some kind of 3rd Party Ping service , most of them are free to use
    (e.g: pingdom, uptimerobot )

2 Answers

@mosaic - If you're looking for something free, but pretty reliable, I would recommend checking out UptimeRobot. You can setup 50 monitors for free and checks will be performed every 5 minutes. This is, IMO, more than enough for any basic website that isn't hosting what I would refer to as "critical" content.

On the commercial side, and as a more reliable / feature rich alternative, I would recommend NewRelic and their line of services (though it does cost and it's not cheap).

  • Thank you. What constitutes to a site down. If the site had an Error establishing a database connection, would this get picked up as a site down?

    • @mosaic - It all depends on how you configure the monitor. The most basic option is a simple ping request (similar to running ping -c 5 yourdomain.ext from the CLI). If the service (i.e. UptimeRobot or NewRelic) receives a valid response (i.e. one that doesn't signal a timeout), the service is deemed to be responsive and another check will be performed in X minutes (5 minutes for UptimeRobot, as an example).

      You can, however, also configure the request to scan a page for certain text. Ideally and preferably, this would be text that does not change. An example would be text within your HTML footer (such as Copyright 2014-2015 YourDomain/YourCompany - All Rights Reserved). If this text is not found when the check is performed, the monitor will often run another check to validate the first response before sending an alert. If multiple checks fail, then the alert will be sent to via the method of your choice (i.e. e-mail, SMS, etc).

      UptimeRobot allows for a decent amount of customization in terms of how the checks are performed. More advanced configurations can be achieved by simply setting up more monitors (since they allow you to create up to 50 for free). You could use one to check Port 80 (the default HTTP port), one to scan the homepage, one to scan another page etc.

Have another answer? Share your knowledge.