Archived
1
0
Fork 0

feat: Add -monitor option

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2022-08-31 18:40:52 +02:00
commit 3b392700d3
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7
4 changed files with 128 additions and 0 deletions

View file

@ -203,6 +203,7 @@ docker run -it --name restockbot --rm --link chromium:chromium -v $(pwd):/root/
There are two modes:
* **default**: without special argument, the bot parses websites and manage its own database
* **API**: using the `-api` argument, the bot starts the HTTP API to expose data from the database
* **monitor**: using the `-monitor` (optionaly with `-monitor-warning-timeout` and `-monitor-critical-timeout` arguments), the bot checks for last execution times per shop to return a Nagios compatible output
## How to contribute