title: Nginx upstream health check modules
body: <p>Is anyone using any health check modules on nginx.</p>
  
  <p>What we need is a simple health checker that would ping the backend nodes and would stop sending traffic to one of them if it doesnt respond to the health check.</p>
  
  <p>I found this - <a href="https://github.com/cep21/healthcheck_nginx_upstreams" rel="nofollow">https://github.com/cep21/healthcheck_nginx_upstreams</a> </p>
  
  <p>But then trying to getting this to compile for centos has been extremely difficult.</p>
  
  <p>Let me know if you have been able to successfully setup this on linux or have any other ideas as to whether I should use another alternative health check module.</p>
  
  <p>--ERROR 1--</p>
  
  <pre><code>[root@SOMESERVER nginx-1.6.1]# patch -p1 &lt; /tmp/healthchecknginx/nginx_upstream_check_module-0.1.9/check_1.2.6+.patch
  
  1 out of 8 hunks FAILED -- saving rejects to file src/http/ngx_http_upstream_round_robin.c.rej
  patching file src/http/ngx_http_upstream_round_robin.h
  </code></pre>
  
  <p>-- ERROR 2--</p>
  
  <pre><code>./configure: error: the HTTP rewrite module requires the PCRE library.
  You can either disable the module by using --without-http_rewrite_module
  option, or install the PCRE library into the system, or build the PCRE library
  statically from the source with nginx by using --with-pcre=&lt;path&gt; option.
  </code></pre>