A Website Monitor Bot for You

Daniel Collier
2 min readApr 26, 2021

A few years ago, I’ve developed a few websites as a Web Developer.

I don’t like to let former clients getting disappointed or having bigger troubles for their businesses having their websites down without assistance.

The websites require very little assistance, but sometimes one of them gets down from some issue with the host company. Then I might need to open a support ticket or access the site backup panel to restore it.

As I’m working on the others projects, I wouldn’t like to be surprised by a big complaining call. So, I’ve built a script to check twice a day if any of my client’s websites are down.

Bot Routine

It reads a list of websites and fetches each one to get its status code. If there is any down, send an email notification warning me.

Customizable Spreadsheet

A simple spreadsheet has been developed if you want to monitor your own domains. You can get your own copy by clicking the link below:

https://docs.google.com/spreadsheets/d/1_T9NAjhKdnkZbCVijAQ6wgkLrG8CQSupl4qlFe0bOgM/copy

How it works:

  1. At the “Configuration” sheet put your name, email, and select the best our to send you warnings.
  2. At the “Domain Monitoring” sheet put the names of the domains you want to monitor in column A.
  3. In the menu, go to “Monitoring Menu” to install the trigger by clicking at “Set your trigger — run just once”.

Please note: the first time you click you will be asked to authorize the script so you can run it on your Google account. After you authorize, you run the script. Thus, you might need to click twice on “Set your trigger — run just once”.

Try it out:

You can put some broken examples like “example123.com” to make sure that the script is properly running on your account.

In the “Monitoring Menu”, click at “Monitor your websites” to manually run the bot and get the current status of your websites.

After running the script, if you get any error message you will clearly see it on your screen and also receive an email notification. If everything is ok, a green flag is going to be shown next to your domain name.

Check the Code

If you are interested in knowing how to implement a system like this, you can check out the code on my Github.

If you need any help, please let me know by commenting below.

Thanks for the reading!

--

--

Daniel Collier

Software Developer graduated in Electrical Engineering. Data-driven, with a love for Business Automation and Customer Experience.