You probably have to monitor the log with a log watching tool and have it run the script. Or use the haproxy socket to monitor and trigger the script.

On 4/10/10 7:31 AM, Gullin, Daniel wrote:
Yes I know, but mean that I got active/backup on the webfarm. I have one
webserver that is active and one backup webserver. When the first
webserver fail and the failover is done to the backup webserver I need
HAProxy to run a external script...

My conf:

listen x.x.x.x:80
        mode http
        balance roundrobin
        option ssl-hello-chk
        server web1 192.168.1.10 check
        server web2 192.168.2.10 check backup

Thanks
Daniel


2010/4/10 Bernhard Krieger <[email protected] <mailto:[email protected]>>

    Hi,

    you can use keepalived to install a active/passive loadbalancer.
    Look at this howto.

    http://www.howtoforge.com/haproxy_loadbalancer_debian_etch_p2

    regards
    Bernhard


    Am 10.04.2010 11:39, schrieb Gullin, Daniel:
    Hi, I´m wondering if it´s possible to let HAProxy /execute/ a
    external script when a failover is done in a active/passive
    configuration ?
    For example I use one active and one backup server and I want to
    /execute a script when the active server fail and HAProxy is doning
    a failover to the backup server... ?

    Thanks
    Daniel
    /



Reply via email to