Hi Ben, On Tue, Nov 20, 2012 at 10:38:13AM -0500, Ben Timby wrote: > I am trying to find a health check suitable for FTP servers. Sometimes > the FTP server is in a state where it accepts a connection, but does > not respond for several seconds. I would like to be able to simply > ensure that the FTP server banner is returned by a server, ensuring > it's healthy operation. > > Issue 1: > > Is there a way to do a generic expect-style TCP check? It seems like > it would be fairly trivial to allow something like: > > option tcpchk send foo expect bar
Agreed but there is no such thing yet, as most uses of send/expect are much more multi-exchange scripts. We'll probably move that to an external much more complex process. > Issue 2: > > I could not find anything suitable, so I decided to try smtpchk, it > could perhaps be bent to my will. However, the problem I ran into is > that my servers expect the proxy protocol, and even though the servers > are configured as: > > listen ftp-vip00 > bind 1.1.1.1:21 > mode tcp > option tcplog > balance leastconn > option smtpchk HELO ftp.org > server beta-ftp00.ftphosting.net 2.2.2.2:21 check send-proxy > > No PROXY line was sent before the HELO ftp.org smtpchk, thus the check fails. What version are you using ? This was changed in dev12 so that the send-proxy directive also works with health checks. However be careful with dev12, we have found and fixed many issues since then. I'm about to issue dev13 (finishing last tests), so you'd better use that. >From reports I've had, just using "option smtpchk" was giving good results on FTP and POP, which is why there are no such checks right now. Regards, Willy

