# Fastcgi statistics at nginx

**URL:** <https://www.ruby-forum.com/t/fastcgi-statistics-at-nginx/195711>\
**Category:** NGINX\
**Created:** [September 28, 2010, 9:58pm UTC](https://www.ruby-forum.com/t/fastcgi-statistics-at-nginx/195711 "2010-09-28T21:58:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flavio\_Torres](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee7513/32.png) [@Flavio\_Torres](https://www.ruby-forum.com/u/Flavio_Torres)\
**Post date:** [September 28, 2010, 9:58pm UTC](https://www.ruby-forum.com/t/fastcgi-statistics-at-nginx/195711/1 "2010-09-28T21:58:34Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hi,

Please, is there a way to see how many active requests I have to fastcgi  
?

Something like that:

fastcgi.active-requests: 0  
fastcgi.backend.fcgi-php.0.connected: 10127  
fastcgi.backend.fcgi-php.0.died: 0  
fastcgi.backend.fcgi-php.0.disabled: 0  
fastcgi.backend.fcgi-php.0.load: 0  
fastcgi.backend.fcgi-php.0.overloaded: 0  
fastcgi.backend.fcgi-php.1.connected: 93855  
fastcgi.backend.fcgi-php.1.died: 0  
fastcgi.backend.fcgi-php.1.disabled: 0  
fastcgi.backend.fcgi-php.1.load: 0  
fastcgi.backend.fcgi-php.1.overloaded: 0  
fastcgi.backend.fcgi-php.load: 1  
fastcgi.requests: 399355

Stub Status Module does not do that ☹

Thanks  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iEUEARECAAYFAkyiSJ4ACgkQNRQApncg294KCgCg339t7QfAJ/y5EJtGwlmzK/iu  
ktkAl2EO3+do3edYlu2NHa1/iuLh6Ko=  
=Giyr  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![Flavio\_Torres](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee7513/32.png) [@Flavio\_Torres](https://www.ruby-forum.com/u/Flavio_Torres)\
**Post date:** [September 29, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/fastcgi-statistics-at-nginx/195711/2 "2010-09-29T16:40:07Z")

</div>

> Please, is there a way to see how many active requests I have to fastcgi ?

You can get some statistics from FPM itself like:

accepted conn: 129  
pool: www  
process manager: dynamic  
idle processes: 20  
active processes: 0  
total processes: 20

when setting the pm.status\_path variable in fpm config.

For example:

pm.status\_path = /status

Then you should configure nginx to pass the location to php backend:

location /status {  
fastcgi\_pass …  
# whatever else you have  
}

rr
