Executing Script between Failover

2011-11-24 Thread Prasad Wani
Hi, While configuring the Failover between two machine does HaProxy has any future to execute the Script Just after the Failover and before 2nd server start serving request. What I needed here Whenever Failover happens I want to call Monitoring URL and it will be called every time whenever

Re: Executing Script between Failover

2011-11-24 Thread wsq003
One another way would be: Use crontab to start a script, this script can get status of servers by `curl http://your.haproxy.com:8080/admin_status;cvs` Then you can send messages to anywhere you like. From: Prasad Wani Date: 2011-11-24 19:12 To: haproxy Subject: Executing Script between

Re: Executing Script between Failover

2011-11-24 Thread Prasad Wani
Thanks for the quick reply. But Yes for the timing I am doing the same. Written the script to get the status of server. I though if I can do it with haproxy. Thanks, On Thu, Nov 24, 2011 at 4:28 PM, wsq003 wsq...@sina.com wrote: ** One another way would be: Use crontab to start a script,

Re: Executing Script between Failover

2011-11-24 Thread Baptiste
Hi, Logging at the backend level allows HAProxy to send syslog messages to report server status changes. You can use them to trigger action on your own. cheers On Thu, Nov 24, 2011 at 11:58 AM, wsq003 wsq...@sina.com wrote: One another way would be: Use crontab to start a script, this script