Email alerts for ldirectord (patch in URL)
mofino at gmail.com
Tue Aug 2 16:02:29 BST 2005
On 8/1/05, Peter Mueller <pmueller at sidestep.com> wrote:
> Hello Horms,
> Please consider adding this to CVS. It is diffed against CVS obtained from
> today. The functionality added is to send an email when a server goes in and
> out of service. You must change the two email address variables to make it
> work. Currently they are:
> +$ALERTEMAILOUTSERVICE = "outofservicemeailaddresshere at localhost";
> +$ALERTEMAILRESTORESERVICE = "restoreservicemeailaddresshere at localhost";
> Depending on the server the 'restore' service is less useful because a
> ldirectord reload, such as kill -HUP ldirectord, will send out a restore for
> each server. Also, I am not certain what a solution would be for a user that
> does not want email. Comment out the two ld_alert instance calls by default?
> Or maybe change the default email to root at localhost?
Nice patch, but you're not even checking to see if /usr/lib/sendmail
exists or if it even ran without errors. Ideally you would make all
these variables, configuration variables as well. I'd have to say
this patch is incomplete, but it's a good idea.
More information about the lvs-users