Simple service that will run periodic ping checks on provided IPs mostly to check if internet or an specified network is available.
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.
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