tjstein / php5-fpm-munin-plugins

A set of Munin plugins for PHP5-FPM
http://tjstein.com
MIT License
109 stars 45 forks source link

Wrong name of php-fpm bin #2

Closed deogracia closed 13 years ago

deogracia commented 13 years ago

Hi, On my Debian Lenny,the name returned by ps pour php5-fpm is "php-fpm".

Here's what I have va-1:/PHP5-FPM-Munin-Plugins# ps awwwux | grep php 1001 1896 0.8 0.4 453948 66960 ? S 11:49 0:47 php-fpm: pool www

I use php5-fpm 5.3.5-0.dotdeb.0 .

The solution is to change PHP_BIN=${phpbin-"php5-fpm"} to PHP_BIN=${phpbin-"php-fpm"}.

hermzz commented 13 years ago

The name of the php-fpm binary changes on every distribution, which is why I made it an over-ridable variable. In your munin configuration, you can add

[phpfpm_*]
env.phpbin php-fpm
deogracia commented 13 years ago

Thanks, I misundertood this line PHP_BIN=${phpbin-"php5-fpm"}

It works.

:-)