munin plugin do phpfpm

3

Eu configurei o plugin do PHP-FPM

Todos os gráficos funcionam, exceto três

  • Tamanho médio do processo do PHP5-FPM

  • Uso da memória PHP5-FPM

  • Processos PHP5-FPM

configuração

/etc/munin/plugin-conf.d/munin-node

[phpfpm_*]
env.url http://127.0.0.1/status
env.ports 80
env.phpbin php5-fpm
env.phppool www

linha de comando

apt-get install libwww-perl
cd /usr/share/munin/plugins
git clone git://github.com/tjstein/php5-fpm-munin-plugins.git
chmod +x php5-fpm-munin-plugins/phpfpm_*
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_average /etc/munin/plugins/phpfpm_average
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_connections /etc/munin/plugins/phpfpm_connections
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_memory /etc/munin/plugins/phpfpm_memory
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_status /etc/munin/plugins/phpfpm_status
ln -s /usr/share/munin/plugins/php5-fpm-munin-plugins/phpfpm_processes /etc/munin/plugins/phpfpm_processes
/etc/init.d/munin-node restart

/var/ini/php/pools/www-php.conf

pm.status_path = /status

nginx.conf

server {
    listen  80;
    server_name  127.0.0.1;

    location ~ ^/(status|ping)$ {
        include  fastcgi_params;
        fastcgi_pass  php;
        fastcgi_param  SCRIPT_FILENAME  $fastcgi_script_name;
        allow  127.0.0.1;
        deny  all;
    }
}

teste

cd /etc/munin/plugins && munin-run phpfpm_status
    
por clarkk 07.05.2016 / 04:55

0 respostas