On Tue, 3 Feb 2009, Ruy Diaz wrote:

Hi,
Hi,

Please try to avoid top-posting.

Here's the output:

y$ haproxy -vv
HA-Proxy version 1.3.15.7 2008/12/04
Copyright 2000-2008 Willy Tarreau <w...@1wt.eu>

Build options :
TARGET  = linux26
CPU     = i686
CC      = gcc
CFLAGS  = -O2 -march=i686 -g
OPTIONS = USE_PCRE=1

Stats are working (aside from the socket issue), as I can access the web interface to view the status as well.

OK, so you must have put "stats socket" in the wrong place, it should be in the "[global]" section.

Digging through forums I thought what I needed was to add a 'stats socket /var/run/haproxy.stat mod 777' line to my haproxy config, but when I add
this, I get the following error:

[ALERT] 032/163027 (24099) : parsing [/etc/haproxy/haproxy.cfg:29] : unknown stats parameter 'stats' (expects 'hide-version', 'uri', 'realm', 'auth' or
'enable').
[ALERT] 032/163027 (24099) : Error reading configuration file : /etc/haproxy/haproxy.cfg

Best regards,

                        Krzysztof Olędzki

Reply via email to