Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20144

Preprocessing regex for item php-fpm.ping doesn't work

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Setup zabbix 5.4.7 (server + agent2)
      2. Apply PHP-FPM by Zabbix agent to host and follow configuration steps.
      3. Excecute the item php-fpm_ping
      4. 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.

      Attachments

        Activity

          People

            avolodin Aleksey Volodin
            facundo.aguirre Ignacio Facundo Aguirre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: