This is a near-identical issue to #2148335: Default Localhost Vhost? ( Linode Longview Nginx support )

We use Munin and the fix for the above issue really helps us too. However, it does not provide PHP-FPM statistics access which we find handy to monitor too... Could the following stub also be added also please?

 location ~ ^/(status|ping)$ {
    fastcgi_pass 127.0.0.1:9090;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors on;
    include fastcgi_params;
    access_log off;
    allow 127.0.0.1;
    deny all;
  }

Plus the relevant tweaks to the /opt/local/etc/php53-fpm.conf files:

pm.status_path = /status
ping.path = /ping

OR, if this is not suitable to be added for all, can you tell us the best place to put this so that it's not killed by BOA updates?

Thank you!

Comments

Jim Kirkpatrick’s picture

Issue summary: View changes

(Added php53.ini changes I missed in OP.)

Jim Kirkpatrick’s picture

Status: Active » Postponed (maintainer needs more info)

Ah, hang on...

This commit Nginx: Clean-up for FPM status pages access appears to do exactly what we need -- indeed it was already present on different paths!

I'll check with our sysad to see if this covers it, postponing for now.

omega8cc’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Yeah, we have enabled standard PHP-FPM status and ping, but with custom URLs, since it is designed to work on any URL, because site can be hosted on one of three supported PHP versions running in parallel, so there is no global monitoring via single special vhost possible/useful.