I’m trying to have HAproxy to monitor RabbitMQ’s built-in health check module.
Though I am able to http-check my RabbitMQ web portal and look for a string in the login page, I can’t seem to perform basic authentication (then look for a string with the node status).
I am able to successfully authenticate to the RabbitMQ health page by using curl like so:
The relevant part of my Config:
option httpchk get /api/aliveness-test/%2F HTTP/1.1\r\nAuthorization:\ Basic\ user:password
http-check expect rstring .ok.
default-server inter 1000 fall 2 rise 2
server RabbitMQ01 10.10.10.10:5671 check port 15671 ssl verify none
You’r help is very much appreciated