SLES 11 HAE - Send cluster update and changes through email
This document (7007619) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11 (HAE)
SUSE Linux Enterprise Server 11 Service Pack 1 (HAE)
Situation
- Changes in resource location
- Node status / reboots
- Network outages / communication problems
Resolution
Configure a mail resource that looks like the following XML example. You can add this in the crm_gui (Cluster GUI
or through the crm command line utility.
Adding through the GUI:
To add the mailTo resource open the Pacemaker GUI either through the command crm_gui or in yast2 "Pacemaker GUI".
1) Under resource click add choose clone and then primitive for the resource.
2) Next fill in the information for the name and choose
- Class -> OCF
- Provider ->Heartbeat
- Type ->MailTO
3) Once the resource attributes tab is accessible fill in the email setting with the email address desired.
Apply the changes and the resource should come online.
Adding the resource via the crm interface
crm(live)# configure
crm(live)configure# primitive MailTo ocf:heartbeat:MailTo \
> params email="me@myaddress.com"
crm(live)configure# commit
XML view of the Resource from the Pacemaker GUI > Resources > XML view
<clone id="mailTO-clone">
<meta_attributes id="mailTO-clone-meta_attributes">
<nvpair id="mailTO-clone-meta_attributes-clone-max" name="clone-max" value="2"/>
<nvpair id="mailTO-clone-meta_attributes-target-role" name="target-role" value="started"/>
</meta_attributes>
<primitive class="ocf" id="mailTO" provider="heartbeat" type="MailTo">
<operations id="mailTO-operations">
<op id="mailTO-op-monitor-10" interval="10" name="monitor" start-delay="0" timeout="10"/>
</operations>
<instance_attributes id="mailTO-instance_attributes">
<nvpair id="mailTO-instance_attributes-email" name="email" value="admin@mydomain.com"/>
</instance_attributes>
<meta_attributes id="mailTO-meta_attributes"/>
</primitive>
</clone>
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7007619
- Creation Date: 20-Jan-2011
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Real Time Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com