Utility for checking availability of specified websites and notifying about errors via telegram bot.
- Clone repository
git clone https://github.com/corelof/downtime-notifier
- Inside of
downtme-notifier
directory rungo build *.go
- Rename
config_example.json
toconfig.json
- Fill all
config.json
fields with correct info(telegram api token, etc.) - Specify URL's to check in config file
- Run previously compiled binary file(
main
) - After launching write message to bot, token of which you have specified. After that, bot will memorize chat id and send reports to this chat. Procedure of memorizing chat id must be repeated on every relaunch.
Note: checkFrequency
config parameter must be specified in seconds.