-
Problem report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
Sprint 92 (Sep 2022), Sprint 93 (Oct 2022)
-
0.125
Steps to reproduce:
- Use the PHP-FPM by Zabbix agent template
- 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.