Hi, <div><br></div><div>Please try:</div><div><br></div><div><a href="https://github.com/liseen/healthcheck_nginx_upstreams/blob/master/healthcheck.patch">https://github.com/liseen/healthcheck_nginx_upstreams/blob/master/healthcheck.patch</a></div>
<div><br></div><div>patch -p1 < healthcheck.patch</div><div>./configure ....</div><div><br></div><div>if you use healthcheck with upstream hash, please compile with branch support_http_healthchecks of cep21's fork  </div>
<div>      <a href="https://github.com/cep21/nginx_upstream_hash/tree/support_http_healthchecks">https://github.com/cep21/nginx_upstream_hash/tree/support_http_healthchecks</a></div><div><br></div><div>liseen<br><br><br><div class="gmail_quote">
On Sat, Oct 1, 2011 at 6:06 AM, liseen <span dir="ltr"><<a href="mailto:liseen.wan@gmail.com">liseen.wan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Hi,</div><div><br></div><div>It is a bug.   </div><div><br></div><div>the ngx_upstream_get_peer only check the index greater than i;  forgot to check i itself.  </div><div><br></div><div>I used my nginx patch for healthcheck,  I have used it in production more than half a year. I will upload it to my github in some hours.</div>

<div><br></div><font color="#888888"><div>liseen  </div></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 4:34 AM, Sjaak Pieterse <span dir="ltr"><<a href="mailto:sjaak23@gmail.com" target="_blank">sjaak23@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
i'm trying to use the HttpHealthcheckModule for nginx, but i have some<br>
troubles with it.<br>
<br>
i have two servers in my upstream, when sabotaging the health for one<br>
server i see in the status view of healthcheck that the server is<br>
down(1), but if i go to the website i'm checking i still come out on<br>
it and see a broken page.<br>
<br>
how can i arrange that the server automatically is marked as down when<br>
the check fails?<br>
<br>
sorry for my bad english and maybe noob questions.<br>
<br>
config:<br>
 upstream www-health{<br>
        server x.x.x.1 ;<br>
        server x.x.x.2 ;<br>
    healthcheck_enabled;<br>
    healthcheck_delay 10000 ;<br>
    healthcheck_timeout 1000;<br>
    healthcheck_failcount 2;<br>
    #healthcheck_expected 'I_AM_ALIVE';<br>
    #Important: HTTP/1.0<br>
    healthcheck_send "GET / HTTP/1.0" 'Host: <a href="http://health.test.x.com" target="_blank">health.test.x.com</a>'<br>
'Conection: close' ;<br>
}<br>
<br>
nginx: nginx version: nginx/1.0.6<br>
nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)<br>
nginx: TLS SNI support enabled<br>
nginx: configure arguments: --with-http_ssl_module<br>
--add-module=/gnosek-nginx-upstream-fair-2131c73<br>
--with-http_stub_status_module<br>
--add-module=/cep21-healthcheck_nginx_upstreams-b33a846<br>
--prefix=/usr/local/nginx-1.0.6 --with-debug<br>
<br>
used:<br>
peckhardt@test-nginx:~/nginx-1.0.6$patch -p1 <<br>
/cep21-healthcheck_nginx_upstreams-5fa4bff/nginx.patch<br>
<br>
hope someone would help me.<br>
<br>
greetings<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>