Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsquire/page_check
Check your web site for availability.
https://github.com/gsquire/page_check
Last synced: 30 days ago
JSON representation
Check your web site for availability.
- Host: GitHub
- URL: https://github.com/gsquire/page_check
- Owner: gsquire
- License: mit
- Created: 2015-05-13T19:00:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-13T19:11:31.000Z (over 9 years ago)
- Last Synced: 2024-06-21T09:56:27.714Z (5 months ago)
- Language: Go
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# page_check
This is a small script I used to check if my web page is up and running.
It is run in a cron job every 10 minutes.I use the [SendGrid](https://sendgrid.com) API to mail myself an alert if the
page is down. I figured this would be easier than setting up SMTP myself.If you wish to run the script yourself, here are some instructions.
Install
* Go programming language: https://golang.org/doc/install
* SendGrid Go package: https://github.com/sendgrid/sendgrid-go
* SendGrid API key: https://sendgrid.com/beta/settings/api_keyYou must set your SendGrid API key as an environment variable.
```sh
export SENDGRID_API_KEY=some_sample_123
```Then you can build the binary using `go build`.
# License
MIT