Re: [Linux-HA] Hertbeat fail-over Email Alert
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 li...@alteeve.ca 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 li...@alteeve.ca 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 Linux-HA@lists.linux-ha.org 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 Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org 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 Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
[Linux-HA] corosync communication stops after link down
OS: Ubuntu 14.04 64bit corosync: 2.3.3-1ubuntu1 2 nodes 2 rings (em1, bond0(p2p1,p1p1)) rrp_mode: active, all with crossover cables, no switches transport: udpu If the cluster is up for some time (here: ~ 1 week), and one node is rebooted, corosync on the surviving node (no-carrier on all corosync-related interfaces) does not resume sending packets when links go up again after peer finished rebooting (3-4 minutes link down; tcpdump on both nodes and both em1 and bond0 show: no packets from the surviving node). The rebooted node then cannot see any neighbor and consequently decides to stonith the peer before starting resources. But the resources still cannot run until the stonith'd node is completely rebooted, because the drbd volumes became outdated at shutdown -r now time. Subsequent reboots do not show any problems. Repeat after ~ 1 week uptime, and the problem shows up again. This happened on two different cluster installs with rougly the same hardware (Dell Poweredge R520 resp. R420, onboard Broadcom BCM5720 (em1), 2x2port Intel I350 (p2p1,p1p1)). Any ideas? Regards Matthias Ferdinand ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Hertbeat fail-over Email Alert
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? -- : 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 Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Hertbeat fail-over Email Alert
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? Thanks! Tom 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 Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Hertbeat fail-over Email Alert
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 tpar...@cbnco.com 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? Thanks! Tom 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 Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems