HAProxy community

How to check the current status in the external health check?


#1

When I perform an external health check, I want to check the status of the current backend server.
However, there are no parameters.
Is there a way to get the current backend server status as a parameter in the external health check program?

The final goal is to call my system API whenever health check status changes. The use of healthcheck log is also being considered.

In this case, what do you usually use?


#2

No, the parameters and additional environment variables are those that are documented.

Issuing show servers state on the admin socket may be useful for you.