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

PHP-FPM by Zabbix agent

XMLWordPrintable

    • Sprint 92 (Sep 2022), Sprint 93 (Oct 2022)
    • 0.125

      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.

            vkhaliev Vyacheslav Khaliev
            dgibbs Daniel Gibbs
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: