<br clear="all">  Best regards.<br>
<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 10:38 PM, Hungpo DU <span dir="ltr">&lt;<a href="mailto:alecdu@gmail.com">alecdu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br><br><div class="gmail_quote"><div class="im">On Wed, Jul 14, 2010 at 7:01 PM, Srebrenko Šehić <span dir="ltr">&lt;<a href="mailto:ssehic@gmail.com" target="_blank">ssehic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

On Wed, Jul 14, 2010 at 4:15 AM, Weibin Yao &lt;<a href="mailto:nbubingo@gmail.com" target="_blank">nbubingo@gmail.com</a>&gt; wrote:<br>
<br>
Hi,<br>
<div><br>
&gt; See this module as an example:<br>
&gt; <a href="http://github.com/cep21/healthcheck_nginx_upstreams" target="_blank">http://github.com/cep21/healthcheck_nginx_upstreams</a><br>
<br>
</div>Yeah. I had a look at that, but that module does an active health<br>
check. All I want is to query the current status as seen by nginx&#39;<br>
workers themselves. I do NOT want to send any additional requests to<br>
the upstream.<br>
Any pointers?<br>
<div><div><br></div></div></blockquote></div><div>I don&#39;t think it&#39;s possible under current nginx architecture.  Worker processes are quite independent, and nginx don&#39;t have mechanism like Apache&#39;s scoreborad, where every worker writes its status on. At least, you can&#39;t get the global information about what every process are doing. <br>

But, you may get upstream status about the worker_process who is handling your &quot;/monitor&quot; request by checking every requests the worker_process is handling? Just a thought.<br></div></div><br>
</blockquote></div>Yes, some idea hits me. Maybe, what ngx_http_stub_status_module does is what you want. It does have gobal information about all the workers. Every worker writes it&#39;s connections and requests information into a piece of shared memory. But, it may requires a lot of work to show you what you want.<br>