Setup Website Monitoring Properly So You Know if Your Database Connection Goes Down
Published: Jan 4, 2026
I monitor my websites with UptimeRobot on the free plan. It’s good, the timer checks every five minutes and for most hobby projects, it’s more than enough. The monitor URLs were setup as for example, https://prasna.ca. A few days ago, I realized there was ‘database connection’ error but since I use redis and CloudFlare, simple curl commands give status 200 and we never found out AND UptimeRobot was happy as well so we didn’t know the site was down.
I figured, if you setup the URLs in UptimeRobot like https://prasna.ca/wp-login.php, it catches the db error. And the reason is that URL is not cached and that UptimeRobot seems to be smart enough to find that its a db error and sends ‘website down’ alerts.
♨️