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

PHP-FPM by Zabbix agent

    XMLWordPrintable

Details

    • Team INT
    • Sprint 92 (Sep 2022)

    Description

      Steps to reproduce:

      1. Use the PHP-FPM by Zabbix agent template
      2. PHP-FPM: Number of processes running returns no processes

      [bug report] PHP-FPM: Process is not running - ZABBIX Forums

      Result:
      Returns 0 when PHP-FPM processes are running
      Expected:
      Returns number of PHP-FPM processes running

      Fix:

      update PHP-FPM templates as follows

      1. Add a new macro to the template

      the user is typically www-data but do ps -ef|grep php-fpm to confirm

      Macro: {$PHP_FPM.USER}
      Value: www-data

      2. Update existing Item "PHP-FPM: Number of processes running" key
      from
      Code:
      proc.num["\{$PHP_FPM.PROCESS_NAME}"]
      to:
      Code:
      proc.num[,"\{$PHP_FPM.USER}",,"\{$PHP_FPM.PROCESS_NAME}"]

      I have uploaded the edited template from zabbix 6.0.7 that will hopfully help.

      Attachments

        Activity

          People

            drasihov Denis Rasihov
            dgibbs Daniel Gibbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: