1
General Discussion / Difficulties using haproxy tcp-check (bug?)
« on: May 07, 2021, 03:53:23 pm »
I'm trying to configure a tcp-ip check using the GUI. The case is fairly simple and described in the haproxy documentation.
I want to configure a health check that does the following:
See also https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4.2-tcp-check%20connect
I know a http-check exists but it does not suit my case.
When I configure this in the GUI the actual config file ends up corrupted (parse error) because it is saved as:
Is this a bug or is there a way to work around this issue? It seems the plugin only expects a "send" or "expect" but not both although you can enter it in the GUI.
I want to configure a health check that does the following:
Code: [Select]
option tcp-check
tcp-check connect
tcp-check send GET\ /\ HTTP/1.0\r\nHost:\ haproxy.1wt.eu\r\n\r\n
tcp-check expect rstring (2..|3..)
See also https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4.2-tcp-check%20connect
I know a http-check exists but it does not suit my case.
When I configure this in the GUI the actual config file ends up corrupted (parse error) because it is saved as:
Code: [Select]
option tcp-check
tcp-check connect
tcp-check send GET\ /\ HTTP/1.0\r\nHost:\ haproxy.1wt.eu\r\n\r\n expect rstring (2..|3..)
Is this a bug or is there a way to work around this issue? It seems the plugin only expects a "send" or "expect" but not both although you can enter it in the GUI.