LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Email alerts for ldirectord (patch in URL)

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Email alerts for ldirectord (patch in URL)
From: Reid Sutherland <mofino@xxxxxxxxx>
Date: Tue, 2 Aug 2005 17:53:16 -0400
On 8/2/05, Peter Mueller <pmueller@xxxxxxxxxxxx> wrote:
> > 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.
> 
> This is true, but it works on RedHat and Suse.  I'll be happy to change my
> patch for your distro(s) if you have any patch updates..
> 
> Ldirectord needs email alert functionality.  I'm sure there's a better way of
> doing it - isn't there always with Perl - but this does work.

I personally would investigate getting those variables into the config
file first.  And then check the return value of sendmail.  You could
optionally use module as well, such as Mail::Sendmail.

-reid

<Prev in Thread] Current Thread [Next in Thread>