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

HAProxy has a very nice status page showing me which webservers are up and which ones are down on the backend. I am trying to debug some issues and need to know which servers nginx thinks are up and which ones it thinks are down. Is there a web page or something that you can configure for nginx so I can just hit a url when I need this type of information?

thanks, Dean

share|improve this question

3 Answers 3

up vote 5 down vote accepted

There are a couple of modules you may want to check out:

share|improve this answer

Unfortunately this is almost impossible out of the box. vanila nginx has not global state for upstream by design so this information is local for every worker process.

Take a look at this module seems may be useful for you http://wiki.nginx.org/NginxHttpHealthcheckModule

share|improve this answer

A year late to this reply but ustats module for nginx looks pretty impressive:

https://code.google.com/p/ustats/

moved to github https://github.com/0xc0dec/ustats

Unfortunately doesn't seem maintained after 1.2 but might still work.

Found a maintained fork https://github.com/nginx-modules/ngx_ustats_module

1.7.2 patch still works against 1.7.4 perfectly

share|improve this answer

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.