mirror of https://github.com/fmartingr/nudge.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 months ago | |
---|---|---|
cmd | 5 months ago | |
docker | 5 months ago | |
internal | 5 months ago | |
.gitignore | 5 months ago | |
Dockerfile | 5 months ago | |
Makefile | 5 months ago | |
README.md | 5 months ago | |
VERSION | 5 months ago | |
go.mod | 5 months ago | |
go.sum | 5 months ago |
README.md
nudge
Simple service that will run periodic ping checks on provided IPs mostly to check if internet or an specified network is available.
Configuration
Using environment variables:
NUDGE_LOG_LEVEL
(default:warn
): Log level to use. See logrus.Level.NUDGE_PORT
(default:2000
): The port to serve the HTTP serverNUDGE_IPS
(default:1.1.1.1 9.9.9.9
): Space 1 separated list of IPs to check for connectivity.NUDGE_INTERVAL
(default60
, seconds): Interval to perform checks on the specified IPs.
API
GET /health
: Simple endpoint to check the service is working200
: Service working- Anything else: problems!
GET /status
: Check the status of the connection200
: All ips answered to ICPM204
: All ips failed to answer to ICMP