First, install the required dependencies:

    apt install libfcgi-client-perl

Then, create you own NRPE config file `/etc/nagios/nrpe.d/php-fpm_custom.cfg` with something like this:

    command[check_fpm_nextcloud]=/usr/lib/nagios/plugins/check_phpfpm_status.pl -H localhost -u /fpm-status-nextcloud --unixsocket /run/php/fpm_nextcloud.sock
    command[check_fpm_ldapsaisie]=/usr/lib/nagios/plugins/check_phpfpm_status.pl -H localhost -u /fpm-status-ldapsaisie --unixsocket /run/php/fpm_ldapsaisie.sock
    ...

You can use the following command to identify existing php-fpm sockets:

    for f in $(grep -l '^pm\.status' /etc/php/**/fpm/pool.d/*.conf); do echo "# $f" ; grep -E '^(listen\s*=|pm.status)' $f ; done

