Skip to content

fmartingr/nudge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 server
  • NUDGE_IPS (default: 1.1.1.1 9.9.9.9): Space 1 separated list of IPs to check for connectivity.
  • NUDGE_INTERVAL (default 60, seconds): Interval to perform checks on the specified IPs.

API

  • GET /health: Simple endpoint to check the service is working
    • 200: Service working
    • Anything else: problems!
  • GET /status: Check the status of the connection
    • 200: All ips answered to ICPM
    • 204: All ips failed to answer to ICMP

Footnotes

  1. https://github.com/spf13/viper/issues/380

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published