http-checker
http-check
http-check
is a small HTTP status checker written in Crystal, which notifies any unexpected HTTP status using https://pushover.net/
Installation
1 - Compile the source code: crystal build src/cli.cr -o bin/http-checker
2 - Set both HTTP_CHECKER_TOKEN
and HTTP_CHECKER_USER
environment variables with the token of your application and your user token.
3 - Maybe you want to enable the binary in cron.
Usage
Create a file with the list of domains and expected HTTP status code (as an example, we provide the sites.yml
file).
Just call $ bin/http-checker sites.yml
Contributing
- Fork it ( https://github.com/ferblape/http-check/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Thanks
Thank you @porras, specially for his Curl replacement crul from which I've been inspired.
Contributors
- ferblape Fernando Blat - creator, maintainer
Repository
http-checker
Owner
Statistic
- 3
- 0
- 0
- 0
- 0
- almost 9 years ago
- November 28, 2015
License
MIT License
Links
Synced at
Mon, 25 Nov 2024 17:26:22 GMT
Languages