include fastcgi_params;
}
}
}
编译zabbix——agent配置文件
[root@cat ~]# vim /etc/zabbix/zabbix_agentd.d/php_status.conf
UserParameter=php-fpm.status[*],/usr/bin/curl -s "https://127.0.0.1/php_statusxml" | grep "" | awk -F'>|
重启服务
[root@cat ~]# systemctl restart php-fpm.service
[root@cat ~]# systemctl restart nginx.service
[root@cat ~]# systemctl restart zabbix-agent.service
导入模板
閱讀更多 IT生涯 的文章