<div dir="ltr">Hey Laszlo, <div><br>There is the way to implement easily the described requirement </div><div><br></div><div>you can add the following directives to the global section of the <a href="http://lvs.cf">lvs.cf</a> </div>
<div><br></div><div><div>active_cmd = path_to_your_script </div><div>inactive_cmd = path_to_your_script</div><div><br></div><div>where your_script maybe any program executable which can be developed in bash, python, perl or C </div>
<div><br></div><div>active_cmd - will be invoked when local pulse service will change its role to master </div><div>inactive_cmd - will be invoked when local pulse service will change its role to backup </div><div><br></div>
<div>It is obvious that you can send email / snmp trap or whatever will be required from the described scripts </div><div><br></div><div>Probably the above API is unofficial - BUT I use it in many system i built for last four years without any problem. </div>
<div><br></div><div>Hope this will help you </div><div><br></div><div>Good luck and Happy Holidays, </div><div><br></div><div>With Kind Regards,</div><div>Mike Kemelmakher </div><div>UbXess LTD </div><div><br></div><div>
<div class="gmail_quote">On Fri, Dec 11, 2009 at 1:52 PM, Laszlo Beres <span dir="ltr"><<a href="mailto:laszlo@beres.me">laszlo@beres.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I have the beautiful duty to set up a 2-node loadbalancer.<br>
Unfortunately the client has some requests I can't implement for the<br>
first sight:<br>
<br>
- having e-mail notification about master/backup failover<br>
- starting external scripts when failover happens<br>
<br>
Is there an easy way or unofficial, unsupported solution for the<br>
requirements above?<br>
<br>
Best regards,<br>
<font color="#888888"><br>
--<br>
László Béres Unix system engineer<br>
<a href="http://www.google.com/profiles/beres.laszlo" target="_blank">http://www.google.com/profiles/beres.laszlo</a><br>
<br>
_______________________________________________<br>
Piranha-list mailing list<br>
<a href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/piranha-list" target="_blank">https://www.redhat.com/mailman/listinfo/piranha-list</a><br>
</font></blockquote></div><br></div></div></div>