在配置文件中添加php-fpm /usr/local/landhightech/nginx/conf/conf.d/default.conf
在 php-fpm配置文件 /usr/local/landhightech/etc/php-fpm.d/www.conf 中添加pm.status_path = /phpfpmstatus
把脚本”monitor_phpfpm_status“放到/etc/zabbix/scripts下,chmod 777
添加变量内容到/etc/zabbix/zabbix_agentd.conf
UserParameter=phpfpm.status.pool,/etc/zabbix/scripts/monitor_phpfpm_status pool
UserParameter=phpfpm.status.process.manager,/etc/zabbix/scripts/monitor_phpfpm_status process_manager
UserParameter=phpfpm.status.start.since,/etc/zabbix/scripts/monitor_phpfpm_status start_since
UserParameter=phpfpm.status.accepted.conn,/etc/zabbix/scripts/monitor_phpfpm_status accepted_conn
UserParameter=phpfpm.status.listen.queue,/etc/zabbix/scripts/monitor_phpfpm_status listen_queue
UserParameter=phpfpm.status.max.listen.queue,/etc/zabbix/scripts/monitor_phpfpm_status max_listen_queue
UserParameter=phpfpm.status.listen.queue.len,/etc/zabbix/scripts/monitor_phpfpm_status listen_queue_len
UserParameter=phpfpm.status.idle.processes,/etc/zabbix/scripts/monitor_phpfpm_status idle_processes
UserParameter=phpfpm.status.active.processes,/etc/zabbix/scripts/monitor_phpfpm_status active_processes
UserParameter=phpfpm.status.total.processes,/etc/zabbix/scripts/monitor_phpfpm_status total_processes
UserParameter=phpfpm.status.max.active.processes,/etc/zabbix/scripts/monitor_phpfpm_status max_active_processes
UserParameter=phpfpm.status.max.children.reached,/etc/zabbix/scripts/monitor_phpfpm_status max_children_reached
5. 重启zabbix客户端
6.成功