Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gihnius/http-pinger
A simple tool to check website status and notify via email.
https://github.com/gihnius/http-pinger
Last synced: 10 days ago
JSON representation
A simple tool to check website status and notify via email.
- Host: GitHub
- URL: https://github.com/gihnius/http-pinger
- Owner: gihnius
- Created: 2013-12-09T08:16:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-19T03:25:51.000Z (almost 10 years ago)
- Last Synced: 2024-08-02T02:15:08.929Z (3 months ago)
- Language: Go
- Size: 131 KB
- Stars: 20
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http pinger
A simple tool to check website status and notify via email.
## build executable
`go build http-pinger.go`## run from console
`./http-pinger `OR:
```
go run http-pinger.go
```## config.json
```
{
"lag": 30,
"interval": 60,
"urls_file": "urls.txt",
"smtp_username": "",
"smtp_password": "",
"smtp_host": "localhost",
"smtp_port": "25",
"email_subject": "http pinger",
"from_email": "[email protected]",
"to_emails": ["[email protected]"]
}
```
Alerts by email when a url's response time longer than **lag** in seconds.## urls file
```
http://google.com/
http://baidu.com/
https://non-exist.xyz/
```
lines without http:// or https:// beginning would be ignored.## TODO
* monitor other services: smtp, ftp, ping, pop3, custom port...
* check spectial expected http status code for a url
* add notify by twitter, SMS ?## License
The MIT License (MIT)