-
Patch request
-
Resolution: Fixed
-
Trivial
-
4.4.7, 5.0.0alpha4
-
None
-
Zabbix 4.4.7
HAProxy version 2.0.13-2~bpo10+1
-
Sprint 63 (Apr 2020)
-
0.125
Steps to reproduce:
- Install zabbix Haproxy from Debian official packages (or backports)
- Activate template HAproxy by zabbix-agent (https://www.zabbix.com/integrations/haproxy).
Result:
The version is not correctly parsed:
Preprocessing failed for: HTTP/1.1 200 OK..cache-control: no-cache..content-type: text/html..refresh: 10..transfer-encoding...
1. Failed: HAProxy version is not found : TypeError: cannot read property 1 of null
Expected:
The version is: 2.0.13-2~bpo10+1 or 2.0.13
Workaround:
try {
// return value.match(/HAProxy version (\d+\.\d+\.\d+),/)[1];
return value.match(/HAProxy version (\d+\.\d+\.\d+)-/)[1];
}
catch (error) {
throw "HAProxy version is not found : " + error;
}