Add all PHP-FPM versions to watchdog when installed
When you install a new version of PHP through the plesk installer the new versions of php-fpm should be added to the watchdog extension. and in turn, the watchdog extension should check for what versions are installed when it is being installed.
I found this: https://support.plesk.com/hc/en-us/articles/115000584394-Watchdog-extension-monitors-only-PHP-FPM-application-provided-by-OS-vendor-only
and it works fine, but the added PHP-FPM entries in the watchdog config file don't show up in watchdog.
to fix this, when installing php7x or 5x through plesk installer it should include adding creating a file called php-fpmXX.conf in /usr/local/psa/etc/modules/watchdog/service.d containing:
plesk-php72-fpm
check process plesk-php72-fpm
with pidfile /var/run/plesk-php72-fpm.pid
start = "/bin/systemctl start plesk-php72-fpm.service"
stop = "/bin/systemctl stop plesk-php72-fpm.service"
if <php_fpm_timeout_restarts> restarts within <php_fpm_timeout_cycles> cycles then timeout
every <php_fpm_cycles> cycles
mode <php_fpm_mode>
and run the following query
INSERT INTO modulewatchdogservice (name, label, sortval, startcmd, stopcmd) VALUES ('phpfpm72', 'PHP-FPM72 (FastCGI Process Manager)', 140, '/usr/local/psa/admin/bin/phpinimng --type fpm --start --service-name php-fpm72', '/usr/local/psa/admin/bin/phpinimng --type fpm --stop --service-name php-fpm75');
It sounds more like bugreport than feature request and already discussed here https://talk.plesk.com/threads/watchdog-extension-will-not-display-more-than-25-service-entries.349319/
If you have additional information about this issue or want to get advice from the community, please go to our forum at https://talk.plesk.com.
Thank you.
—
IG