SUSE Support

Here When You Need Us

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

When monitoring a High Availability Cluster with SLES 11 sending updates to a email address about the cluster status can be useful.

  • 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

HAE1:~/Desktop # crm
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

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.