If you want help, you're going to need to provide better information
about the problem you are having. Did you try to modify that alert
program? As I mentioned, I did not expect it to work as-is. You will
need to modify it for your environment. Alternatively, use it as an
example for a new script more suited to your needs.
On 24/09/14 01:58 PM, Atul Yadav wrote:
Dear Team,
I am not able mail alert as per above setup.
please share alternate method or custom script for mail alert on fail-over.
Thank You
Atul Yadav
On Tue, Sep 23, 2014 at 6:32 PM, Digimer <[email protected]> wrote:
"Working", perhaps. But if you run into problems later, there aren't many
heartbeat users left, so you might have trouble getting help.
The script I use is here:
https://alteeve.ca/w/AN!Cluster_Tutorial_2#Setting_Up_Alerts
Note that it is built assuming you are using an Anvil!, which you are not
doing. So please expect to need to alter it to work on your environment.
You will need to change the parts that call 'clustat' to use the heartbeat
monitoring tools, at the very least.
digimer
On 23/09/14 08:53 AM, Atul Yadav wrote:
Dear Team,
Thanks for reply.
But now storage HA working fine.
If you have some scripts to trigger the alert, please share it.
Thank You
Atul Yadav
On Tue, Sep 23, 2014 at 4:59 PM, Digimer <[email protected]> wrote:
Hi Atul,
If this is a new setup, please use corosync + pacemaker. Heartbeat
hasn't been developed in a long time and there are no plans to restart
development, either.
As for sending email, I don't think there is a default way to do it. I
know there is the foghorn project that should help. Personally, I wrote a
little daemon that watches the cluster resources (plus IPMI sensor
values,
UPS data, network bond states, etc) each 30 seconds and, if something
important changes, sends an email. A script like this should be fairly
easy
to write for your environment, too.
digimer
On 23/09/14 07:25 AM, 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.
Thank You
Atul Yadav
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
_______________________________________________
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
--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
_______________________________________________
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
--
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without
access to education?
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems