2

We have two HAProxy servers using keapalived for failover. Once one goes down, the other one takes over seamlessly.

I know it is possible to configure HAProxy to send an email to alert a sysadmin, but it would also be helpful to see the health n the HAProxy statistics page where all monitored services are displayed. (hostname:1936/?stats).

Is this possible? Currently we don't even know which one of the servers is serving the stats page.

1

If all you want to know is which node is the active one, then look at using the stats show-node directive.

Add it to your stats section and you're good to go.

| improve this answer | |
  • Thank you that was helpful. Now I know which node the stats are served from. However, it does not tell if the other HAProxy server is up or not. – merlin Aug 21 '15 at 16:15
  • Not sure, but that's a whole other question. – GregL Aug 21 '15 at 16:36
  • This question might help you along with your Is the other HAProxy server is up or not? problem. – GregL Aug 21 '15 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.