Pulse - e-mail notification and external script?

Alessandro Vercelli alever at libero.it
Fri Dec 11 19:56:01 UTC 2009


Hi MIke,

before your reply I answered (a bit hastily) the notification was not supported....

Today, I can claim not to have lived in vain...:))

Thanks for information,


Alessandro



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





More information about the Piranha-list mailing list