PHP 7.3+ now has a fpm_get_status() which returns an array of status information, including the summary.
fpm_get_status()
See https://www.php.net/manual/en/function.fpm-get-status.php