<div dir="ltr"><div>yeah :) it happens to all of us from time to time </div><div><br></div><div>anyway - when available - it is always worth to review the source of the software you use - usually you can find lots of useful stuff there :) </div>
<div><br></div><div>-M</div><br><div class="gmail_quote">On Fri, Dec 11, 2009 at 9:56 PM, Alessandro Vercelli <span dir="ltr"><<a href="mailto:alever@libero.it">alever@libero.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi MIke,<br>
<br>
before your reply I answered (a bit hastily) the notification was not supported....<br>
<br>
Today, I can claim not to have lived in vain...:))<br>
<br>
Thanks for information,<br>
<br>
<br>
Alessandro<br>
<br>
<br>
<br>
>Hey Laszlo,<br>
<div class="im">><br>
>There is the way to implement easily the described requirement<br>
><br>
>you can add the following directives to the global section of the <a href="http://lvs.cf" target="_blank">lvs.cf</a><br>
><br>
>active_cmd = path_to_your_script<br>
>inactive_cmd = path_to_your_script<br>
><br>
</div><div><div></div><div class="h5">>where your_script maybe any program executable which can be developed in<br>
>bash, python, perl or C<br>
><br>
>active_cmd - will be invoked when local pulse service will change its role<br>
>to master<br>
>inactive_cmd - will be invoked when local pulse service will change its role<br>
>to backup<br>
><br>
>It is obvious that you can send email / snmp trap or whatever will be<br>
>required from the described scripts<br>
><br>
>Probably the above API is unofficial - BUT I use it in many system i built<br>
>for last four years without any problem.<br>
><br>
>Hope this will help you<br>
><br>
>Good luck and Happy Holidays,<br>
><br>
>With Kind Regards,<br>
>Mike Kemelmakher<br>
>UbXess LTD<br>
><br>
>On Fri, Dec 11, 2009 at 1:52 PM, Laszlo Beres <<a href="mailto:laszlo@beres.me">laszlo@beres.me</a>> wrote:<br>
><br>
>> 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>
>><br>
>> --<br>
</div></div><div><div></div><div class="h5">>> 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>
>><br>
><br>
<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>
</div></div></blockquote></div><br></div>