Hi, I'm currently working on HAProxy's health check: reordering and updating the documentation, renaming some checks and adding new onses (IMAP and POP for now).
You have to update 2 files, cfgparse.c and checks.c. The best is to look a t the code for smtpchk, for example, and to try to reproduce it. If you can send me a network capture of a mssql check, then I'll write the check for you. If you can't send it, then you'll have to wait a bit that I install a mssl server somewhere. cheers On Thu, Mar 15, 2012 at 10:11 AM, Anton Kiryushkin <sw...@fotofor.biz> wrote: > Hello all. > > I'm try to write custom check my MsSQL servers. Now I can check they by > network ip and port. But maybe situation, then same MsSQL server is alive, > but database is down. > So, I add my check in proxy.h, cfgparse.c, and checks.c in event_srv_chk_r. > After compile HAProxy is started, but my check can't be implemented. > How I can to make my custom check? Now I was try write in "else if" function > event_srv_chk_r send_log: > send_log (s->proxy, LOG_INFO, "%s\n", "mssql check"); > But this string was not gave any effect. What am I doing wrong? > > -- > Best regards, > Anton Kiryushkin, >