You could use the command rabbitmq-diagnostics -q ping in case you just need a basic check.
test: rabbitmq-diagnostics -q ping
More information on how to run more advanced health checks could be found here
Consider using the rabbitmq/rabbitmq-autocluster plugin:
A RabbitMQ plugin that clusters nodes automatically using a number of peer discovery mechanisms:
DNS A records
AWS EC2 tags
AWS Autoscaling Groups
There is a fair bit of configuration to plug in to get this setup including setting IAM policies and adding EC2 tags to ...