haproxy and stats not working :(

From: Guillaume Bourque <guillaume.bourque#gmail.com>
Date: Mon, 17 Mar 2008 13:52:03 -0400

Hello !

I'm having hard time figuring out how to get the stats, I would need some help to resolve 2 issues.

My configuration: debian 8.04 dev, haproxy version haproxy- and haproxy_1.3.12.dfsg-1_i386.deb

Here is my config file

# mettre -r ds /etc/default/syslogd pour accepter le syslog

       log local0 debug

#log loghost local0 info
stats socket /tmp/stats maxconn 4096 debug
user haproxy group haproxy defaults log global option tcplog
#gb option dontlognull
retries 3 maxconn 2000 contimeout 5000 clitimeout 14400000 srvtimeout 14400000 listen stats mode http option httpclose stats enable stats uri / listen rdpfarm :3389 mode tcp balance source # keep alive vers client et le serveur option tcpka server RDP-1 check port 3300 server RDP-1bk check port 3389 backup server RDP-2 check port 3300 server RDP-2bk check port 3389 backup
  1. I have one tcp instance working fine under haproxy I would like to create a listen section just for the stats as per the doc but when I do so I get this error on haproxy startup

/etc/init.d/haproxy start
* Starting haproxy
[ALERT] 076/112852 (1445) : parsing /etc/haproxy.cfg : proxy 'stats' has no dispatch address and is not in transparent or balance mode.

2) Is there a shell example that I could used to ask haproxy to dump the csv stat to a file ? I have configure the "stats socket /tmp/stats" option but don't know how to get the data ouf of it ?

Thanks a lot

Guillaume Bourque, B.Sc.,
consultant, infrastructures technologiques
Logisoft Technologies inc.
514 576-7638
Received on 2008/03/17 18:52

This archive was generated by hypermail 2.2.0 : 2008/03/17 19:00 CET