本文基于ubuntu16.04 php7.0
最近服务器的php-fpm进程偶尔会异常飙升,于是想在zabbix上配置监控服务器的nginx和php-fpm的状态。前提是需要开启nginx和php-fpm的status功能。
启用nginx status配置
- 配置server,一般我们在默认的主机下配置:
server {
#listen 80;
listen 80 default_server;
root /var/www/html;
index index.php index.html index.htm;
server_name 127.0.0.1;
location ~ \.php$ {
includ