Want to subscribe to topics you're interested in?
Become a Member

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 Well-Known Member

    2,500
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    7:03 AM
    Nginx-1.13.x
    MariaDB 10.1.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 Well-Known Member

    2,500
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    7:03 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    28,988
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,767
    Local Time:
    2:03 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  4. pamamolf

    pamamolf Well-Known Member

    2,500
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    7:03 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Forgot that one :)

    Working now thanks
     
    • Like Like x 1