From: Willy Tarreau Date: Fri, 30 Nov 2007 11:04:38 +0000 (+0100) Subject: [MEDIUM] report disabled servers as "NOLB" when they are still UP X-Git-Tag: v1.3.14~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2ea81930e777fda70814244a59614c3462fe1fb6;p=thirdparty%2Fhaproxy.git [MEDIUM] report disabled servers as "NOLB" when they are still UP It's important to be able to distinguish between servers which are UP and those which are UP but disabled via a 404 response. For this reason, the status entries report "NOLB" instead of "UP", and the HTML page uses darker colors. As a complement, write "DOWN" in bold red on the backend if it has no server left for load balancing. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index cac57cfa1e..388a5f7ace 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -349,12 +349,16 @@ int stats_dump_http(struct session *s, struct uri_auth *uri, int flags) ".active1 {background: #ffd020;}\n" ".active2 {background: #ffffa0;}\n" ".active3 {background: #c0ffc0;}\n" - ".active4 {background: #e0e0e0;}\n" + ".active4 {background: #ffffa0;}\n" /* NOLB state shows same as going down */ + ".active5 {background: #a0e0a0;}\n" /* NOLB state shows darker than up */ + ".active6 {background: #e0e0e0;}\n" ".backup0 {background: #ff9090;}\n" ".backup1 {background: #ff80ff;}\n" ".backup2 {background: #c060ff;}\n" ".backup3 {background: #b0d0ff;}\n" - ".backup4 {background: #e0e0e0;}\n" + ".backup4 {background: #c060ff;}\n" /* NOLB state shows same as going down */ + ".backup5 {background: #90b0e0;}\n" /* NOLB state shows same as going down */ + ".backup6 {background: #e0e0e0;}\n" "table.tbl { border-collapse: collapse; border-style: none;}\n" "table.tbl td { border-width: 1px 1px 1px 1px; border-style: solid solid solid solid; padding: 2px 3px; border-color: gray;}\n" "table.tbl th { border-width: 1px; border-style: solid solid solid solid; border-color: gray;}\n" @@ -416,8 +420,9 @@ int stats_dump_http(struct session *s, struct uri_auth *uri, int flags) "backup DOWN, going up " "\n" "active or backup DOWN  " - "not checked " + "not checked " "\n" + "Note: UP with load-balancing disabled is reported as \"NOLB\"." "" "" "Display option: