如何设置MONIT以监控php5 fpm?

如何设置MONIT以监控php5 fpm?,php,nginx,monit,Php,Nginx,Monit,我找到的解决方案之一是: check process php5-fpm with pidfile /var/run/php5-fpm.pid group php start program = "/etc/init.d/php5-fpm start" stop program = "/etc/init.d/php5-fpm stop" if failed unixsocket /tmp/php-fpm.sock then restart if 4 restart

我找到的解决方案之一是:

check process php5-fpm with pidfile /var/run/php5-fpm.pid
   group php 
   start program = "/etc/init.d/php5-fpm start"
   stop program  = "/etc/init.d/php5-fpm stop"
   if failed unixsocket /tmp/php-fpm.sock then restart
   if 4 restarts within 5 cycles then timeout
   depends on nginx
这不起作用,因为我的系统中不存在以下文件: /tmp/php-fpm.sock

当我运行sudo find/-name*.sock时,我得到:

如果有帮助的话,我将更改此文件,以配置php在我使用的特定域中的行为:/etc/php5/fpm/pool.d/web2.conf。那么也许正确的文件是`/var/lib/php5 fpm/web2.sock

这是一个带有ubuntu 12.04和nginx 1.4.4的VPS

/run/mysqld/mysqld.sock
/run/fail2ban/fail2ban.sock
/var/lib/php5-fpm/web2.sock
/var/lib/php5-fpm/ispconfig.sock
/var/lib/php5-fpm/apps.sock