RabbitMQ - rabbitmqctl node_health_check

by
Jeremy Canfield |
Updated: June 04 2021
| RabbitMQ articles
The rabbitmqctl node_health_check command can be used to determine if a node is functioning properly.
~]# rabbitmqctl node_health_check
Timeout: 70.0 seconds
Checking health of node rabbit@server1
Health check passed
If the health check fails, something like this should be displayed.
~]# rabbitmqctl node_health_check
Timeout: 70 seconds ...
Checking health of node rabbit@server001 ...
Error:
Error: healthcheck failed. Message: cluster partition in effect: [rabbit@server001,rabbit@server002]
The --formatter json option can be used to return the output in JSON.
rabbitmqctl node_health_check --formatter json
Did you find this article helpful?
If so, consider buying me a coffee over at