Skip to content

ooloth/check-website-status

Repository files navigation

Check Website Status

A simple script that attempts to fetch one or more URLs and sends an email alert if one or more of them are down.

Usage

  1. Clone this repo
  2. Navigate to this repo's folder
  3. Create an .env.local file at the root level and add values to the following variables:
SENDGRID_API_KEY=""

URLS_SEPARATED_BY_A_SPACE=""
  1. Run npm install
  2. Run npm run check
  3. If you want these checks to run automatically on a schedule: a. Edit the paths in check.sh to match your local folder structure b. Run chmod +x check.sh to make check.sh executable c. Use a cron job (or an app like Lingon) to schedule check.sh to run every day, week, etc.

About

Confirm a list of websites are online.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published