OCF_HEARTBEAT_MAILTO(7)
π ocf_heartbeat_MailTo β the little agent that emails your sysadmin the moment something gets taken over π
okay so picture this: it's the manual page for ocf_heartbeat_MailTo, and honestly it's giving "tiny but iconic". It's an OCF resource agent, it lives over in the heartbeat class, and its whole personality is sending email to a sysadmin whenever a takeover occurs. That's it. That's the job. And it does it flawlessly, no cap. π
β¨ SYNOPSIS β¨
MailTo [start | stop | status | monitor | meta-data | validate-all]
like, those are the actions, bestie. pick one. that's the whole vibe check. π¦
π DESCRIPTION π
So this is a resource agent for MailTo, right? And what it does β genuinely the sweetest little thing β is it sends email to a sysadmin whenever a takeover occurs. Somebody takes over the resource, boom, your inbox knows about it. it's giving "loyal guard dog but make it email." πβ¨
πΈ SUPPORTED PARAMETERS πΈ
two params. that's it. we love a low-maintenance icon. π
emailβ the email address of your sysadmin. this one's required, it's a string, and nope, there's no default β you gotta tell it where to send the mail, it's not a mind reader. πsubjectβ the subject line of the email. this one's optional, it's a string, and it defaults to"Resource Group"if you don't say otherwise. cute little fallback fr fr. π
π₯ SUPPORTED ACTIONS π₯
this resource agent supports the following actions (aka operations), and each one comes with its own suggested timeout, so don't sleep on those numbers:
startβ starts the resource. suggested minimum timeout:10s. βstopβ stops the resource. suggested minimum timeout:10s. πstatusβ performs a status check. suggested minimum timeout:10s. suggested interval:10s. πmonitorβ performs a detailed status check. suggested minimum timeout:10s. suggested interval:10s. πmeta-dataβ retrieves resource agent metadata (internal use only, don't touch unless you know why you're touching). suggested minimum timeout:5s. π§validate-allβ performs a validation of the resource configuration. suggested minimum timeout:5s. β
π«Ά EXAMPLE CRM SHELL π«Ά
here's what a MailTo resource looks like when you configure it with the crm(8) shell β copy it exactly, bestie, no improvising:
primitive p_MailTo ocf:heartbeat:MailTo \
params \
email=string \
op monitor depth="0" timeout="10s" interval="10s"
slay. that's the whole thing. π
π¦ EXAMPLE PCS π¦
and here's the same idea using pcs(8) β note the op line is a lil different, OCF_CHECK_LEVEL="0" instead of depth="0", so don't mix 'em up:
pcs resource create p_MailTo ocf:heartbeat:MailTo \
email=string \
op monitor OCF_CHECK_LEVEL="0" timeout="10s" interval="10s"
periodt. π
π SEE ALSO π
- <http://clusterlabs.org/> β go say hi, the whole cluster stack lives there π
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) β like, real ones wrote this, check the source if you want names π«‘
heads up bestie: everything above is the agent's actual documented behaviour β I'm not out here inventing features. if it's not on this page, it's not in the agent. π
okay and the cute lil sign-off: this page is from resource-agents UNKNOWN, dated 10/01/2026, and yeah the version string literally says UNKNOWN β mystery icon behaviour, we respect it. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms