HA Heartbeat Mailto question

I recently setup a HA cluster between two linodes, I bascially followed these steps as listed here : http://library.linode.com/linux-ha/ip-f … untu-10.04">http://library.linode.com/linux-ha/ip-failover-heartbeat-pacemaker-drbd-mysql-ubuntu-10.04

Everything is working well except that I'm trying to get a mailto primitive to actually work, but cannot.

I currently have this in my config:

primitive mail ocf:heartbeat:MailTo \

params email="alert@XXXXXX.com" subject="*** ALERT - Cluster Failover Event ***" \

op monitor interval="10" timeout="10" depth="0" \

When I run crm_mon though I have this:

mail (ocf::heartbeat:MailTo): Started ha02 (unmanaged) FAILED

also, under failed actions it says this:

mailstart0 (node=ha02, call=208, rc=5, status=complete): not installed

mailstop0 (node=ha02, call=209, rc=5, status=complete): not installed

I was assuming it was going to use a sendmail command, which I've tested and works properly from the command line…

I'm extremely new to HA, I'm kinda lost and googling around isn't turning up anything really…. anyone have experience do this or similar?

2 Replies

You actually need "mail" command which is in mailx RPM, usually.

# grep MAILCMD /usr/lib/ocf/lib/heartbeat/ocf-binaries 
: ${MAILCMD:=mail}

Thanks, that was it.

for reference for anyone wanting to know, its the bsd-mailx package in debian/ubuntu

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct