On Thu, Sep 25, 2014 at 09:29:23AM +0530, Atul Yadav wrote:
> Dear Admin,
> 
> At the time of fail over initiated the mail should trigger .
> 
> After completing the fail-over activity the mail should trigger.
> 
> For example
> First Alert:- Fail-over initiated from Node1 to Node2
> Second Alert::- Fail-over completed from Node1 to Node 2
> 
> Thank You
> Atul Yadav
> 
> 
> 
> 
> 
> On Thu, Sep 25, 2014 at 8:28 AM, Tom Parker <[email protected]> wrote:
> 
> > Hi Lars
> >
> > Can you provide more details about this resource agent.  The
> > documentation is a little sparse.  What events will cause an e-mail to
> > be sent?

The MailTo resource agent provides a "dummy" resource.
It takes recipient emails, and an optional subject, as parameters.

It sends out an email whenever it is "stopped" or "started".

Just put it at appropriate places in a group or resource set,
and whenever all things it "depends" on have been started,
it will be "started" itself (and send out an email).

Whenever something it "depends" on fails or is stopped,
it will be "stopped" (and send out an email).

May be good enough for what you seem to ask for.

Just don't mistake email as a synchronous, or reliable, communication.
Not receiving an email (in time) may be *very* different from
"All ok, running as normal, nothing happened".

So this does NOT replace proper external monitoring, obviously.

        Lars

> > On 24/09/14 06:53 PM, Lars Ellenberg wrote:
> > > On Tue, Sep 23, 2014 at 04:55:20PM +0530, Atul Yadav wrote:
> > >> Dear Team ,
> > >>
> > >> In our environment for storage HA, we are using heartbeat method.
> > >>
> > >> Our Storage HA is working fine with Heartbeat management.
> > >>
> > >> Now we need your guidance to setup the EMAIL alert at the time of
> > fail-over
> > >>  happen and fail over completed.
> > >>
> > >> We already setup smtp in both the servers.
> > >> And we are able to send mail from terminal window.
> > >> Storage1
> > >> Storage2
> > >>
> > >> Please guide us.
> > > What's wrong with the MailTo resource agent?
> > >
> >
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to