-
Problem report
-
Resolution: Won't fix
-
Trivial
-
None
-
5.4.7
Steps to reproduce:
- Setup zabbix 5.4.7 (server + agent2)
- Apply PHP-FPM by Zabbix agent to host and follow configuration steps.
- Excecute the item php-fpm_ping
- The dependent item php-fpm.ping returns 0 even if the reply is correct (pong).
The preprocessing step of the item php-fpm.ping that tries to match the regexp {$PHP_FPM.PING.REPLY}($|\n)}. The problem is the "($|\n)", if I remove that part the regexp works correctly.
Result:
Here is a sample output of the php-fpm_ping item:
HTTP/1.1 200 OK Connection: close Transfer-Encoding: chunked Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Content-Type: text/plain;charset=UTF-8 Date: Sat, 30 Oct 2021 13:07:28 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT X-Powered-By: PHP/7.4.25 4 pong 0
Expected:
The regexp to match if the response is pong.