external-check: Unable to check UNIX socket servers #101
Comments
|
Feel free to propose a patch for this on the mailing list. Your analysis makes sense and I think the fix sounds reasonable. Possibly that over the long term we should have two sets of address-to-string resolve functions : remote_addr_to_str() (which cannot say more than "unix") and local_addr_to_str() which can actually retrieve more info such as the ones needed for the cases you suggest. By the way, I'm seeing that your version is outdated and is affected by 252 known bugs. Please make your fix against latest master. |
|
I remove 1.6, 1.7 and 1.9 labels. 1.9 is EOL and I doubt the fix will be backported to 1.6 and 1.7 that should now receives only critical fixes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output of
haproxy -vvanduname -aWhat's the configuration?
Steps to reproduce the behavior
Actual behavior
The server address and port passed to the external check script are set to
"unix"becausehaproxy/src/checks.c
Line 1734 in 844028b
haproxy/src/standard.c
Lines 1276 to 1278 in 844028b
Expected behavior
I think the server address parameter to external checks should be set to the unix socket path, to mimic the proxy address behavior
haproxy/src/checks.c
Lines 1722 to 1727 in 844028b
Do you have any idea what may have caused this?
As noted,
haproxy/src/checks.c
Line 1734 in 844028b
addr_to_str()for all address families whilehaproxy/src/checks.c
Lines 1711 to 1734 in 844028b
Do you have an idea how to solve the issue?
Special casing unix sockets similar to how it is done for proxy addresses should work fine.
The text was updated successfully, but these errors were encountered: