REST API health endpoint (GH#96)
<This issue was originally opened on Github as issue #96 (closed) by Smithx10@github.com on July 19, 2018>
Describe the solution you'd like A Health Endpoint via the REST API that informs the user if the Kea Services are healthy and serving. ex: localhost:8080/health
Would respond with a JSON object with some brief information about the KEA services running on the server and their health status.
Describe alternatives you've considered
status=keactrl status | grep "DHCPv4 server" | awk '{print $3}'
if [[ "${status}" == "active" ]] then;
_log "DHCP is healthy"
return 0
else
_log "DHCPv4 is not healthy"
return 1
fi
Related issue: #79 (closed)