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-1.3.14.3-pcre-40kses-splice-linux-i586 and haproxy_1.3.12.dfsg-1_i386.deb

Here is my config file
global

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

       log 127.0.0.1 local0 debug

#log loghost local0 info
stats socket /tmp/stats maxconn 4096 debug
#quiet
user haproxy group haproxy defaults log global option tcplog
#gb option dontlognull
retries 3 maxconn 2000 contimeout 5000 clitimeout 14400000 srvtimeout 14400000 listen stats 192.168.4.24:80 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 192.168.4.111:3389 check port 3300 server RDP-1bk 192.168.4.111:3389 check port 3389 backup server RDP-2 192.168.4.201:3389 check port 3300 server RDP-2bk 192.168.4.201:3389 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
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
http://www.logisoftech.com
Received on 2008/03/17 18:52

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