Re: Pulse - e-mail notification and external script?

"Alessandro Vercelli" <[email protected]> Fri, 11 Dec 2009 20:56:01 +0100
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
Hi MIke,

before your reply I answered (a bit hastily) the notification was not sup=
ported....

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 =3D path_to_your_script
>inactive_cmd =3D 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 ro=
le
>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 bu=
ilt
>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 <[email protected]> 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=E1szl=F3 B=E9res            Unix system engineer
>> http://www.google.com/profiles/beres.laszlo
>>
>> _______________________________________________
>> Piranha-list mailing list
>> [email protected]
>> https://www.redhat.com/mailman/listinfo/piranha-list
>>
>