# HAProxy by Zabbix agent ## Overview The template to monitor HAProxy by Zabbix that works without any external scripts. Most of the metrics are collected in one go, thanks to Zabbix bulk data collection. Template `HAProxy by Zabbix agent` collects metrics by polling [HAProxy Stats Page](https://www.haproxy.com/blog/exploring-the-haproxy-stats-page/) with Zabbix agent. Note that this solution supports https and redirects. ## Requirements Zabbix version: 7.0 and higher. ## Tested versions This template has been tested on: - HAProxy 1.8 ## Configuration > Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section. ## Setup Setup [HAProxy Stats Page](https://www.haproxy.com/blog/exploring-the-haproxy-stats-page/). Example configuration of HAProxy: ```text frontend stats bind *:8404 stats enable stats uri /stats stats refresh 10s ``` If you use another location, don't forget to change the macros {$HAPROXY.STATS.SCHEME},{$HAPROXY.STATS.PORT},{$HAPROXY.STATS.PATH}. ### Macros used |Name|Description|Default| |----|-----------|-------| |{$HAPROXY.STATS.SCHEME}|
The scheme of HAProxy stats page(http/https).
|`http`| |{$HAPROXY.STATS.PORT}|The port of the HAProxy stats host or container.
|`8404`| |{$HAPROXY.STATS.PATH}|The path of HAProxy stats page.
|`stats`| |{$HAPROXY.RESPONSE_TIME.MAX.WARN}|The HAProxy stats page maximum response time in seconds for trigger expression.
|`10s`| |{$HAPROXY.FRONT_DREQ.MAX.WARN}|The HAProxy maximum denied requests for trigger expression.
|`10`| |{$HAPROXY.FRONT_EREQ.MAX.WARN}|The HAProxy maximum number of request errors for trigger expression.
|`10`| |{$HAPROXY.BACK_QCUR.MAX.WARN}|Maximum number of requests on BACKEND unassigned in queue for trigger expression.
|`10`| |{$HAPROXY.BACK_RTIME.MAX.WARN}|Maximum of average BACKEND response time for trigger expression.
|`10s`| |{$HAPROXY.BACK_QTIME.MAX.WARN}|Maximum of average time spent in queue on BACKEND for trigger expression.
|`10s`| |{$HAPROXY.BACK_ERESP.MAX.WARN}|Maximum of responses with error on BACKEND for trigger expression.
|`10`| |{$HAPROXY.SERVER_QCUR.MAX.WARN}|Maximum number of requests on server unassigned in queue for trigger expression.
|`10`| |{$HAPROXY.SERVER_RTIME.MAX.WARN}|Maximum of average server response time for trigger expression.
|`10s`| |{$HAPROXY.SERVER_QTIME.MAX.WARN}|Maximum of average time spent in queue on server for trigger expression.
|`10s`| |{$HAPROXY.SERVER_ERESP.MAX.WARN}|Maximum of responses with error on server for trigger expression.
|`10`| |{$HAPROXY.FRONT_SUTIL.MAX.WARN}|Maximum of session usage percentage on frontend for trigger expression.
|`80`| ### Items |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |HAProxy: Get stats|HAProxy Statistics Report in CSV format
|Zabbix agent|web.page.get["{$HAPROXY.STATS.SCHEME}://{HOST.CONN}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH};csv"]**Preprocessing**
Regular expression: `# ([\s\S]*) \1`
CSV to JSON
Array for LLD rules.
|Dependent item|haproxy.get.nodes**Preprocessing**
JavaScript: `The text is too long. Please see the template.`
Discard unchanged with heartbeat: `1h`
HAProxy Statistics Report HTML
|Zabbix agent|web.page.get["{$HAPROXY.STATS.SCHEME}://{HOST.CONN}:{$HAPROXY.STATS.PORT}/{$HAPROXY.STATS.PATH}"]| |HAProxy: Version||Dependent item|haproxy.version**Preprocessing**
Regular expression: `HAProxy version ([^,]*), \1`
⛔️Custom on fail: Set error to: `HAProxy version is not found`
Discard unchanged with heartbeat: `1d`
**Preprocessing**
JavaScript: `The text is too long. Please see the template.`
**Preprocessing**
Discard unchanged with heartbeat: `10m`
HAProxy version has changed. Acknowledge to close the problem manually.
|`last(/HAProxy by Zabbix agent/haproxy.version,#1)<>last(/HAProxy by Zabbix agent/haproxy.version,#2) and length(last(/HAProxy by Zabbix agent/haproxy.version))>0`|Info|**Manual close**: Yes| |HAProxy: has been restarted|Uptime is less than 10 minutes.
|`last(/HAProxy by Zabbix agent/haproxy.uptime)<10m`|Info|**Manual close**: Yes| |HAProxy: Service is down||`last(/HAProxy by Zabbix agent/net.tcp.service["{$HAPROXY.STATS.SCHEME}","{HOST.CONN}","{$HAPROXY.STATS.PORT}"])=0`|Average|**Manual close**: Yes| |HAProxy: Service response time is too high||`min(/HAProxy by Zabbix agent/net.tcp.service.perf["{$HAPROXY.STATS.SCHEME}","{HOST.CONN}","{$HAPROXY.STATS.PORT}"],5m)>{$HAPROXY.RESPONSE_TIME.MAX.WARN}`|Warning|**Manual close**: YesDiscovery backends
|Dependent item|haproxy.backend.discovery| ### Item prototypes for Backend discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |HAProxy Backend {#PXNAME}: Raw data|The raw data of the Backend with the name `{#PXNAME}`
|Dependent item|haproxy.backend.raw[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `The text is too long. Please see the template.`
Possible values:
UP - The server is reporting as healthy.
DOWN - The server is reporting as unhealthy and unable to receive requests.
NOLB - You've added http-check disable-on-404 to the backend and the health checked URL has returned an HTTP 404 response.
MAINT - The server has been disabled or put into maintenance mode.
DRAIN - The server has been put into drain mode.
no check - Health checks are not enabled for this server.
|Dependent item|haproxy.backend.status[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.status`
Discard unchanged with heartbeat: `10m`
Average backend response time (in ms) for the last 1,024 requests
|Dependent item|haproxy.backend.rtime[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.rtime`
Custom multiplier: `0.001`
Number of requests that encountered an error attempting to connect to a backend server.
|Dependent item|haproxy.backend.econ.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.econ`
Responses denied due to security concerns (ACL-restricted).
|Dependent item|haproxy.backend.dresp.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.dresp`
Number of requests whose responses yielded an error
|Dependent item|haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.eresp`
Current number of requests unassigned in queue.
|Dependent item|haproxy.backend.qcur[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.qcur`
Average time spent in queue (in ms) for the last 1,024 requests
|Dependent item|haproxy.backend.qtime[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.qtime`
Custom multiplier: `0.001`
Number of times a request was redispatched to a different backend.
|Dependent item|haproxy.backend.wredis.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.wredis`
Number of times a connection was retried.
|Dependent item|haproxy.backend.wretr.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.wretr`
Number of informational HTTP responses per second.
|Dependent item|haproxy.backend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_1xx`
Number of successful HTTP responses per second.
|Dependent item|haproxy.backend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_2xx`
Number of HTTP redirections per second.
|Dependent item|haproxy.backend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_3xx`
Number of HTTP client errors per second.
|Dependent item|haproxy.backend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_4xx`
Number of HTTP server errors per second.
|Dependent item|haproxy.backend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_5xx`
Number of bits received by the backend
|Dependent item|haproxy.backend.bin.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bin`
Custom multiplier: `8`
Number of bits sent by the backend
|Dependent item|haproxy.backend.bout.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bout`
Custom multiplier: `8`
Number of active servers.
|Dependent item|haproxy.backend.act[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.act`
Discard unchanged with heartbeat: `1h`
Number of backup servers.
|Dependent item|haproxy.backend.bck[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bck`
Discard unchanged with heartbeat: `1h`
Cumulative number of sessions (end-to-end connections) per second.
|Dependent item|haproxy.backend.stot.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.stot`
Total effective weight.
|Dependent item|haproxy.backend.weight[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.weight`
Discard unchanged with heartbeat: `1h`
Backend is not available.
|`count(/HAProxy by Zabbix agent/haproxy.backend.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5`|Average|| |HAProxy backend {#PXNAME}: Average response time is high|Average backend response time (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_RTIME.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.backend.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_RTIME.MAX.WARN}`|Warning|| |HAProxy backend {#PXNAME}: Number of responses with error is high|Number of requests on backend, whose responses yielded an error, is more than {$HAPROXY.BACK_ERESP.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.backend.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_ERESP.MAX.WARN}`|Warning|| |HAProxy backend {#PXNAME}: Current number of requests unassigned in queue is high|Current number of requests on backend unassigned in queue is more than {$HAPROXY.BACK_QCUR.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.backend.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QCUR.MAX.WARN}`|Warning|| |HAProxy backend {#PXNAME}: Average time spent in queue is high|Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.BACK_QTIME.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.backend.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.BACK_QTIME.MAX.WARN}`|Warning|| ### LLD rule Frontend discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |Frontend discovery|Discovery frontends
|Dependent item|haproxy.frontend.discovery| ### Item prototypes for Frontend discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |HAProxy Frontend {#PXNAME}: Raw data|The raw data of the Frontend with the name `{#PXNAME}`
|Dependent item|haproxy.frontend.raw[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `The text is too long. Please see the template.`
Possible values: OPEN, STOP.
When Status is OPEN, the frontend is operating normally and ready to receive traffic.
|Dependent item|haproxy.frontend.status[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.status`
Discard unchanged with heartbeat: `6h`
HTTP requests per second
|Dependent item|haproxy.frontend.req_rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.req_rate`
Number of sessions created per second
|Dependent item|haproxy.frontend.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.rate`
The current number of established sessions.
|Dependent item|haproxy.frontend.scur[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.scur`
The most simultaneous sessions that are allowed, as defined by the maxconn setting in the frontend.
|Dependent item|haproxy.frontend.slim[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.slim`
Discard unchanged with heartbeat: `1h`
Percentage of sessions used (scur / slim * 100).
|Calculated|haproxy.frontend.sutil[{#PXNAME},{#SVNAME}]| |HAProxy Frontend {#PXNAME}: Request errors per second|Number of request errors per second.
|Dependent item|haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.ereq`
Requests denied due to security concerns (ACL-restricted) per second.
|Dependent item|haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.dreq`
Number of informational HTTP responses per second.
|Dependent item|haproxy.frontend.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_1xx`
Number of successful HTTP responses per second.
|Dependent item|haproxy.frontend.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_2xx`
Number of HTTP redirections per second.
|Dependent item|haproxy.frontend.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_3xx`
Number of HTTP client errors per second.
|Dependent item|haproxy.frontend.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_4xx`
Number of HTTP server errors per second.
|Dependent item|haproxy.frontend.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_5xx`
Number of bits received by the frontend
|Dependent item|haproxy.frontend.bin.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bin`
Custom multiplier: `8`
Number of bits sent by the frontend
|Dependent item|haproxy.frontend.bout.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bout`
Custom multiplier: `8`
Alerting on this metric is essential to ensure your server has sufficient capacity to handle all concurrent sessions. Unlike requests, upon reaching the session limit HAProxy will deny additional clients until resource consumption drops. Furthermore, if you find your session usage percentage to be hovering above 80%, it could be time to either modify HAProxy's configuration to allow more sessions, or migrate your HAProxy server to a bigger box.
|`min(/HAProxy by Zabbix agent/haproxy.frontend.sutil[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_SUTIL.MAX.WARN}`|Warning|| |HAProxy frontend {#PXNAME}: Number of request errors is high|Number of request errors is more than {$HAPROXY.FRONT_EREQ.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.frontend.ereq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_EREQ.MAX.WARN}`|Warning|| |HAProxy frontend {#PXNAME}: Number of requests denied is high|Number of requests denied due to security concerns (ACL-restricted) is more than {$HAPROXY.FRONT_DREQ.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.frontend.dreq.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.FRONT_DREQ.MAX.WARN}`|Warning|| ### LLD rule Server discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |Server discovery|Discovery servers
|Dependent item|haproxy.server.discovery| ### Item prototypes for Server discovery |Name|Description|Type|Key and additional info| |----|-----------|----|-----------------------| |HAProxy Server {#PXNAME} {#SVNAME}: Raw data|The raw data of the Server named `{#SVNAME}` and the proxy with the name `{#PXNAME}`
|Dependent item|haproxy.server.raw[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `The text is too long. Please see the template.`
**Preprocessing**
JSON Path: `$.status`
Discard unchanged with heartbeat: `10m`
Average server response time (in ms) for the last 1,024 requests.
|Dependent item|haproxy.server.rtime[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.rtime`
Custom multiplier: `0.001`
Number of requests that encountered an error attempting to connect to a backend server.
|Dependent item|haproxy.server.econ.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.econ`
Responses denied due to security concerns (ACL-restricted).
|Dependent item|haproxy.server.dresp.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.dresp`
Number of requests whose responses yielded an error.
|Dependent item|haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.eresp`
Current number of requests unassigned in queue.
|Dependent item|haproxy.server.qcur[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.qcur`
Average time spent in queue (in ms) for the last 1,024 requests.
|Dependent item|haproxy.server.qtime[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.qtime`
Custom multiplier: `0.001`
Number of times a request was redispatched to a different backend.
|Dependent item|haproxy.server.wredis.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.wredis`
Number of times a connection was retried.
|Dependent item|haproxy.server.wretr.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.wretr`
Number of informational HTTP responses per second.
|Dependent item|haproxy.server.hrsp_1xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_1xx`
Number of successful HTTP responses per second.
|Dependent item|haproxy.server.hrsp_2xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_2xx`
Number of HTTP redirections per second.
|Dependent item|haproxy.server.hrsp_3xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_3xx`
Number of HTTP client errors per second.
|Dependent item|haproxy.server.hrsp_4xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_4xx`
Number of HTTP server errors per second.
|Dependent item|haproxy.server.hrsp_5xx.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.hrsp_5xx`
Number of bits received by the backend
|Dependent item|haproxy.server.bin.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bin`
Custom multiplier: `8`
Number of bits sent by the backend
|Dependent item|haproxy.server.bout.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bout`
Custom multiplier: `8`
Shows whether the server is active (marked with a Y) or a backup (marked with a -).
|Dependent item|haproxy.server.act[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.act`
Discard unchanged with heartbeat: `1h`
Shows whether the server is a backup (marked with a Y) or active (marked with a -).
|Dependent item|haproxy.server.bck[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.bck`
Discard unchanged with heartbeat: `1h`
Cumulative number of sessions (end-to-end connections) per second.
|Dependent item|haproxy.server.stot.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.stot`
Effective weight.
|Dependent item|haproxy.server.weight[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.weight`
Discard unchanged with heartbeat: `1h`
Configured maxqueue for the server, or nothing in the value is 0 (default, meaning no limit).
|Dependent item|haproxy.server.qlimit[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.qlimit`
Discard unchanged with heartbeat: `6h`
Matches regular expression: `^\d+$`
⛔️Custom on fail: Set value to: `0`
Number of times that server was selected.
|Dependent item|haproxy.server.lbtot.rate[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.lbtot`
Status of last health check, one of:
UNK -> unknown
INI -> initializing
SOCKERR -> socket error
L4OK -> check passed on layer 4, no upper layers testing enabled
L4TOUT -> layer 1-4 timeout
L4CON -> layer 1-4 connection problem, for example "Connection refused" (tcp rst) or "No route to host" (icmp)
L6OK -> check passed on layer 6
L6TOUT -> layer 6 (SSL) timeout
L6RSP -> layer 6 invalid response - protocol error
L7OK -> check passed on layer 7
L7OKC -> check conditionally passed on layer 7, for example 404 with disable-on-404
L7TOUT -> layer 7 (HTTP/SMTP) timeout
L7RSP -> layer 7 invalid response - protocol error
L7STS -> layer 7 response error, for example HTTP 5xx
Notice: If a check is currently running, the last known status will be reported, prefixed with "* ". e. g. "* L7OK".
|Dependent item|haproxy.server.check_status[{#PXNAME},{#SVNAME}]**Preprocessing**
JSON Path: `$.check_status`
Discard unchanged with heartbeat: `10m`
Server is not available.
|`count(/HAProxy by Zabbix agent/haproxy.server.status[{#PXNAME},{#SVNAME}],#5,"eq","DOWN")=5`|Warning|| |HAProxy {#PXNAME} {#SVNAME}: Average response time is high|Average server response time (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_RTIME.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.server.rtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_RTIME.MAX.WARN}`|Warning|| |HAProxy {#PXNAME} {#SVNAME}: Number of responses with error is high|Number of requests on server, whose responses yielded an error, is more than {$HAPROXY.SERVER_ERESP.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.server.eresp.rate[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_ERESP.MAX.WARN}`|Warning|| |HAProxy {#PXNAME} {#SVNAME}: Current number of requests unassigned in queue is high|Current number of requests unassigned in queue is more than {$HAPROXY.SERVER_QCUR.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.server.qcur[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QCUR.MAX.WARN}`|Warning|| |HAProxy {#PXNAME} {#SVNAME}: Average time spent in queue is high|Average time spent in queue (in ms) for the last 1,024 requests is more than {$HAPROXY.SERVER_QTIME.MAX.WARN}.
|`min(/HAProxy by Zabbix agent/haproxy.server.qtime[{#PXNAME},{#SVNAME}],5m)>{$HAPROXY.SERVER_QTIME.MAX.WARN}`|Warning|| |HAProxy {#PXNAME} {#SVNAME}: Health check error|Please check the server for faults.
|`find(/HAProxy by Zabbix agent/haproxy.server.check_status[{#PXNAME},{#SVNAME}],#3,"regexp","(?:L[4-7]OK\|^$)")=0`|Warning|**Depends on**: