Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default the health check binary is installed as /usr/local/bin/health_ck.  When invoked with no command line parameters it will attempt to contact the xAPP running at localhost:4560 by sending an RMR health check message.  The timeout period for a response is 3 seconds.   The binary supports two, optional, parameters allowing it to connect to a different xAPP, and/or to allow for a longer timeout period.  The usage string for the binary is:

   health rmr_ck probe [-h host:port] [-t timeout-seconds]


The rmr_probe application sends a message with the type   RIC_HEALTH_CHECK_REQ and expects a response with the RIC_HEALTH_CHECK_RESP message type.  The payload of the message is expected to be UTF-8 (ASCII) where the first token is either "OK" or "ERR".  Any subsequent tokens are optional and serve as an extended "reason".   The state and reason are written to standard error.


If a response with ERR is received, or no response within the timeout period is received, the exit code is 1 (bad), otherwise the exit code is 0 (good).