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: 3 months 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-02T16:23:03.000Z (6 months ago)
- Last Synced: 2025-02-13T10:16:56.939Z (5 months ago)
- Topics: curl, go, ping, tool
- Language: Go
- Homepage:
- Size: 8.79 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`.
And when the page comes up again, it will send an email to alert of it.
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
```