Change php-fpm configration file and apply the changes.
$ sudo vim /path/to/php-fpm.conf
pm.status_path = /phpfpm_status
# restart php-fpm
Include nginx.conf to your nginx configuration file and reload nginx server.
Ensure it works.
$ curl -s http://127.0.0.1/phpfpm_status
pool: www
process manager: dynamic
start time: 17/May/2019:14:54:02 +0530
start since: 886617
accepted conn: 1619617
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 28
active processes: 1
total processes: 30
max active processes: 31
max children reached: 0
slow requests: 0
Copy userparameter_phpfpm.conf
to zabbix_agentd sub configuration directory such as /etc/zabbix_agentd.conf.d
and restart zabbix_agentd.
Copy phpfpm_status.sh
to ${basedir}/scripts/
and add execution permissions to the file.
Request Zabbix UI to configuration the template and link it to hosts.
- Import
Template_App_phpfpm_3.0.xml
. zabbix doc - Link template to hosts. zabbix doc