Monitor website availability with Bash.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kris Warner 214abea832
Add readme
2 years ago
test Modularize code more, remove email, add tests 2 years ago
.gitignore Start testing 2 years ago Add readme 2 years ago
check_sites Modularize code more, remove email, add tests 2 years ago
functions Further separate stdout and stderr 2 years ago

Site Availability

This program will check a specified list of websites to see if they are available, including if they have a current TLS certificate.

Installation and Setup

  1. Clone this repo into a directory of your choosing.
  2. Make the check_sites file executable: chmod 755 check_sites
  3. Create a file named config with at least one website address in it. Here is an example with two sites:
sites = (


The program is designed to be run manually or via cron. To run manually, cd into the installed directory and run ./check_sites. The results (success or failure) will be shown. Or set up a cronjob like so:

30 * * * * cd /path/to/installed/directory && ./check_sites > /dev/null

Created like that, cron will only send system emails if there has been an error.


This uses the bats-core testing framework and appears to catch at least the most obvious problems with site availability, but you may want to verify this on your own. See the bats-core documentation for information on installation and running the tests.