Checks Ethereum full node RPC API to determine whether it is available, up to date and responsive within certain time constraints.
Pre-built binaries are available here.
Alternatively, you may install application from source. Run the following within the source directory:
make install
Program is intended to work as an external health check command for load balancers and reverse proxies. It returns zero exit code if remote destination is healthy and non-zero exit code otherwise.
$ ethcheck -h
Usage of ethcheck:
-address-override string
force remote host address
-block-tolerance int
request metainfo for latest_block - block_tolerance or -1 for symbolic name "latest" (default -1)
-lag duration
allowed lag treshold (default 1m0s)
-port-override string
force remote host port
-req-timeout duration
timeout for single request (default 5s)
-total-timeout duration
whole operation timeout (default 20s)
-url string
RPC endpoint URL
-version
show program version and exit