Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am just starting learning Nginx webserver. I have question regarding few parameters which I know apache has, but I cannot find something similar in Nginx.

I used to monitor idle workers in apache with http:/host/server-status. Unfortunately I didn't find the way how to monitor idle workers in nginx.

As I understood Nginx has one global worker (worker_processes) which can server 1024 worker_connections. I hope I am get it correctly.

But how can I measure the current load on Nginx. How many from 1024 worker_connections I use currently.

Thanks!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The equivalent for nginx is HttpStubStatusModule. And there is a Munin plugin.

nginx configuration:

server {
   listen 127.0.0.1;
   server_name localhost;
   location /nginx_status {
           stub_status on;
           access_log   off;
           allow 127.0.0.1;
           deny all;
   }
}

And if you have an other ssl server, add :

server {
   listen 127.0.0.1:443;
   ssl....
   server_name localhost;
   location /nginx_status_ssl {
           stub_status on;
           access_log   off;
           allow 127.0.0.1;
           deny all;
   }
}
share|improve this answer
    
Great, thanks, I have another one server section for https connection, the problem now is even connection to nginx_status it tries to transfer thought ssl and meanwhile I have error messages 400 Bad Request. Do you know what I missed? –  com May 22 '12 at 12:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.