PHP-FPM for Zabbix 3.2
php-fpm status for Zabbix 3.2 version.
install script
# Yum php-fpm
sed -i "s/;pm.status_path/pm.status_path/" /etc/php-fpm.d/www.conf
sed -i "s/;ping/ping/" /etc/php-fpm.d/www.conf
systemctl reload php-fpm
mkdir -p /srv/zabbix/libexec
wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/php-fpm.xml.sh -P /srv/zabbix/libexec
wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/userparameter_php-fpm.conf -P /etc/zabbix/zabbix_agentd.d/
wget https://raw.githubusercontent.com/oscm/zabbix/master/php-fpm/default.conf -P /etc/php-fpm/conf.d
chmod +x /srv/zabbix/libexec/php-fpm.xml.sh
systemctl reload php-fpm
systemctl restart zabbix-agent
You can get the latest version:
https://github.com/oscm/zabbix/tree/master/php-fpm
if you can read Chinese to click the following url and.
http://www.netkiller.cn/monitoring/zabbix/zabbix-agent.html
18.4.6. PHP-FPM
这里假设你是采用 yum install php-fpm 方式安装的
sed -i "s/;pm.status_path/pm.status_path/" /etc/php-fpm.d/www.conf sed -i "s/;ping/ping/" /etc/php-fpm.d/www.conf systemctl reload php-fpm
server { listen 80; server_name localhost; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location /stub_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } location ~ ^/(status|ping)$ { access_log off; allow 127.0.0.1; deny all; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; include fastcgi_params; } }