Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 884 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 884 Bytes

This is a modified version of MorbZ/munin-php-fpm https://github.com/MorbZ/munin-php-fpm

Setup PHP-FPM

This plugin requires PHP CLI.

Install Plugin

$ cd /usr/share/munin/plugins/
$ [sudo] wget -O php-fpm https://raw.github.com/d4rk4/munin-php-fpm/master/php-fpm.php
$ [sudo] chmod +x php-fpm

Setup Graphs

Average process memory per pool:
$ [sudo] ln -s /usr/share/munin/plugins/php-fpm /etc/munin/plugins/php-fpm-memory

CPU per pool:
$ [sudo] ln -s /usr/share/munin/plugins/php-fpm /etc/munin/plugins/php-fpm-cpu

Number of processes per pool:
$ [sudo] ln -s /usr/share/munin/plugins/php-fpm /etc/munin/plugins/php-fpm-count

Average process age per pool:
$ [sudo] ln -s /usr/share/munin/plugins/php-fpm /etc/munin/plugins/php-fpm-time

Don't forget to restart Munin after changing plugins:
$ [sudo] service munin-node restart