Pulse - e-mail notification and external script?

Mike Kemelmakher mike at ubxess.com
Sat Dec 12 16:32:13 UTC 2009


yeah :) it happens to all of us from time to time

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  :)

-M

On Fri, Dec 11, 2009 at 9:56 PM, Alessandro Vercelli <alever at libero.it>wrote:

> 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
> >>
> >
>
>
> _______________________________________________
> Piranha-list mailing list
> Piranha-list at redhat.com
> https://www.redhat.com/mailman/listinfo/piranha-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/piranha-list/attachments/20091212/801c8dde/attachment.htm>


More information about the Piranha-list mailing list