Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gonzalinux/web-go-check
Tool to ping urls and check if they are up
https://github.com/gonzalinux/web-go-check
curl go ping tool
Last synced: 4 days ago
JSON representation
Tool to ping urls and check if they are up
- Host: GitHub
- URL: https://github.com/gonzalinux/web-go-check
- Owner: gonzalinux
- Created: 2024-03-12T10:48:50.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-14T10:02:05.000Z (8 months ago)
- Last Synced: 2024-10-17T08:07:18.892Z (20 days ago)
- Topics: curl, go, ping, tool
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-go-check
This is a small tool that will curl all the urls that you specify in `[conf.json](https://github.com/gonzalinux/web-go-check/blob/master/credentials.json)` in the interval that you prefer.Example of configuration file conf.json
```
{
"urls": ["https://url1", "https://url2:2999/route", "https://url3.com/"],
"intervalMinutes": 1,
"emailTo": "[email protected]"
}
```If an error ocurred in one of the urls, and the [`credentials.json`](https://github.com/gonzalinux/web-go-check/blob/master/credentials.json) file is correctly filled, the program will send an email to the address in `conf.json`.
![image](https://github.com/gonzalinux/web-go-check/assets/8148642/875f3c4c-c5ec-473e-9e02-5867f871ded8)And when the page comes up again, it will send an email to alert of it.
![image](https://github.com/gonzalinux/web-go-check/assets/8148642/ab689cce-8c33-4f22-8b0c-1dc3b45ff00a)To run this program:
```
go run mailer.go main.go
```Or build it and run it
```
go build
```Then in windows:
```
start web-go-check.exe
```
(or double click)And in linux
```
./web-go-check
```