Discover Centmin Mod today
Register Now

FPM pools working but i can't see any stats using curl command

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Aug 30, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    8:41 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    FPM pools working but i can't see any stats using curl command :(

    Code:
    [root@server ~]# ss -nlt | grep 900
    LISTEN     0      8150   127.0.0.1:9002                     *:*
    LISTEN     0      8150   127.0.0.1:9003                     *:*
    LISTEN     0      8150   127.0.0.1:9004                     *:*
    LISTEN     0      8150   127.0.0.1:9005                     *:*
    LISTEN     0      8150   127.0.0.1:9000                     *:*
    You have new mail in /var/spool/mail/root
    
    
    [root@server ~]# curl -s 127.0.0.1/phpstatus; curl -s 127.0.0.1/phpstatus-pool2; curl -s 127.0.0.1/phpstatus-pool3; curl -s 127.0.0.1/phpstatus-pool4; curl -s 127.0.0.1/phpstatus-pool5
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    Any ideas?

    I have already add at /usr/local/nginx/conf/phpstatus.conf :


    Code:
                location ~ ^/(phpstatus|phpping)$ {
                    access_log          off;
                    fastcgi_pass        127.0.0.1:9000;
                    fastcgi_param     SCRIPT_FILENAME $fastcgi_script_name;
                    include          fastcgi_params;
                    allow              127.0.0.1;
                    deny                all;
                }
    
                location ~ ^/(phpstatus-pool2|phpping-pool2)$ {
                    access_log          off;
                    fastcgi_pass        127.0.0.1:9002;
                    fastcgi_param     SCRIPT_FILENAME $fastcgi_script_name;
                    include          fastcgi_params;
                    allow              127.0.0.1;
                    #allow YOURIPADDRESS;
                    deny                all;
                }
    
                location ~ ^/(phpstatus-pool3|phpping-pool3)$ {
                    access_log          off;
                    fastcgi_pass        127.0.0.1:9003;
                    fastcgi_param     SCRIPT_FILENAME $fastcgi_script_name;
                    include          fastcgi_params;
                    allow              127.0.0.1;
                    #allow YOURIPADDRESS;
                    deny                all;
                }
    
                location ~ ^/(phpstatus-pool4|phpping-pool4)$ {
                    access_log          off;
                    fastcgi_pass        127.0.0.1:9004;
                    fastcgi_param     SCRIPT_FILENAME $fastcgi_script_name;
                    include          fastcgi_params;
                    allow              127.0.0.1;
                    #allow YOURIPADDRESS;
                    deny                all;
                }
    
                location ~ ^/(phpstatus-pool5|phpping-pool5)$ {
                    access_log          off;
                    fastcgi_pass        127.0.0.1:9005;
                    fastcgi_param     SCRIPT_FILENAME $fastcgi_script_name;
                    include          fastcgi_params;
                    allow              127.0.0.1;
                    #allow YOURIPADDRESS;
                    deny                all;
                }
    Using latest php 5.6 and Centos 7
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    8:41 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Also got some error logs a few days ago....

    Don't know if they are related:

    Code:
    upstream sent unexpected FastCGI record: 3 while reading response header from upstream
    
    connect() failed (111: Connection refused) while connecting to upstream
    
    recv() failed (104: Connection reset by peer) while reading response header from up
    Thanks
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,857
    12,238
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,809
    Local Time:
    4:41 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    8:41 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Forgot that one :)

    Working now thanks