It is a small utility for monitoring pages. If something was changed in pages, you can receive notification in Telegram.
This utility checks given pages and if some information was changed or the page doesn't answer correctly, the utility sends notification to your telegram channel.
You should:
- Create a telegram bot. Here is an instruction.
- Create a telegram channel and set the bot (from a previous step) as administrator of the channel.
- Run utility and wait.
You need to change the configuration file config.json
. By the way, you can see example data in the config file.
debug
- is boolean value. If you need more logging set ittrue
. By default, value isfalse
.token
- Your telegram bot token.channel
- Name of channel where bot will send messages about status of pages.timeout
- Timeout before next check the page. By default, the value is30m
.timeout
string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms" or "2h45m". Valid time units are "ns", "us" (or "?s"), "ms", "s", "m", "h".url
- Array of pages. You need to paste the full url of the page.
You should change config.json file before start. If you want to stop the app, just type exit
in the console.
go run main.go
Open console in the folder where the binary is and type this command
./page-monitoring
page-monitoring.exe
docker build -t monitoring .
docker run --name monitoring monitoring