Serverdensity

Add PHP-FPM plugin

PHP-FPM monitoring is provided via plugin. You just need to run following commands to install it.

cd /usr/bin/sd-agent
sudo ./plugins.py -v 4f4a2463c86da15d7e000001

ServerDensity Config for PHP, MySQL & Nginx

Create/Edit ServerDensity config file:

vim /etc/sd-agent/config.cfg

Make sure [Main] section looks like below:

[Main]
mysql_server = DB_HOST
mysql_user = DB_USER
mysql_pass = DB_PASS
nginx_status_url = http://127.0.0.1/nginx_status
fpm_status_url = http://127.0.0.1/status
sd_url = http://SUBDOMAIN.serverdensity.com
agent_key = SERVERDENSITY_API_KEY
plugin_directory = /usr/bin/sd-agent/plugins

Notes: