Hey, Can you give a try to stats socket ipv4@a.b.c.d:1234
You can even cipher the connection and even use a client certificate to allow people using the socket. Baptiste Baptiste On Tue, Jul 9, 2013 at 10:48 AM, Simon Green <si...@wirehive.net> wrote: > Hi Willy, > > Ref: "Since a recent enough version, maybe dev16 or 17, you can even have > your stats socket listen to TCP directly :-)" > > How is that done? I'm struggling to find it in the docs. That would be much > cleaner than using socat! > > Simon > > -----Original Message----- > From: Willy Tarreau [mailto:w...@1wt.eu] > Sent: 24 June 2013 21:06 > To: Simon Green > Cc: haproxy@formilux.org > Subject: Re: Remotely accessible stats socket and HATop > > Hi Simon, > > On Sun, Jun 23, 2013 at 10:17:29PM +0000, Simon Green wrote: >> Hi List, >> >> We had a requirement to be able to put servers in and out of maint >> mode remotely from a script. To facilitate this we exposed the stats >> socket using socat, and wrote an init script to do that for us: >> https://github.com/Wirehive/haproxy-remote > > Since a recent enough version, maybe dev16 or 17, you can even have your > stats socket listen to TCP directly :-) > >> We then thought it would be nice, as we manage a lot of HAProxy >> instances, to be able to use HATop (http://feurix.org/projects/hatop/) >> remotely, so we've modified HATop to accept a host and port for TCP socket >> connections: >> https://github.com/Wirehive/hatop >> >> I'm not sure how useful this will be for everyone else, but I thought >> I'd share it just in case :) > > Good idea, I think that can be useful especially for people who monitor > special events (eg stores selling with high rebates for one day, etc...). > > Regards, > Willy > >