RabbitMQ

RabbitMQ

RabbitMQ Check validates connectivity to a RabbitMQ instance and optionally checks for username and password authentication.

Usage with Binary

./wait4it -type=rabbitmq -h=127.0.0.1 -p=5267 -t=60 -u=guest -P=guest

Usage with Docker

docker run ph4r5h4d/wait4it -type=rabbitmq -h=127.0.0.1 -p=5267 -t=60 -u=guest -P=guest

Environment Variables

VariableDescriptionDefault
W4IT_TYPEThe type of check (set to rabbitmq for RabbitMQ check).-
W4IT_TIMEOUTTimeout in seconds.30
W4IT_HOSTThe host to check.127.0.0.1
W4IT_PORTThe port to check on the RabbitMQ host.5267
W4IT_USERNAMEThe username for RabbitMQ authentication.-
W4IT_PASSWORDThe password for RabbitMQ authentication.-

Command-Line Arguments

ArgumentDescriptionDefault
-typeThe type of check (set to rabbitmq).-
-tTimeout in seconds.30
-hThe host to check.127.0.0.1
-pThe port to check on the RabbitMQ host.5267
-uThe username for RabbitMQ authentication.-
-PThe password for RabbitMQ authentication.-

Notes

ℹ️
  • Environment variables override command-line arguments.
  • Ensure that the specified RabbitMQ username and password are correct for the connection to succeed.

Exit Codes

CodeMeaning
0Connection successful.
1Timed out.
2Validation error or incorrect input.