getting stats in localhost without a password

From: Gabriel Sosa <sosagabriel#gmail.com>
Date: Thu, 10 Dec 2009 22:02:29 -0200


Guys,

I got my haproxy running like a charm, the only thing missing is to be able to read the proxy stats from localhost without password. My idea is to monitoring the proxy and I need the data.

This is the part of the monitoring configuration

listen  admin_stats xxx.xxx.xxx.xxx:8080
        mode            http
        stats uri       /proxy-stats
        stats realm     Proxy\ statistics
        stats auth      admin:password

listen  admin_stats_in 127.0.0.1:80
        mode            http
        stats           enable
        stats uri       /proxy-stats

and if I run

[root@lb1 haproxy]$ curl http://localhost//proxy-stats

I got:

<html><body><h1>503 Service Unavailable</h1> No server is available to handle this request. </body></html>

any idea? thanks Received on 2009/12/11 01:02

This archive was generated by hypermail 2.2.0 : 2009/12/11 01:15 CET