Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Sep 28, 2011 12:46 pm 
Offline
Senior Newbie

Joined: Thu Sep 22, 2011 1:10 pm
Posts: 16
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

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:
mail_start_0 (node=ha02, call=208, rc=5, status=complete): not installed
mail_stop_0 (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?

_________________
-Abzstrak


Top
   
 Post subject:
PostPosted: Sat Oct 08, 2011 3:00 pm 
Offline
Senior Newbie

Joined: Sat Sep 03, 2011 10:01 am
Posts: 17
You actually need "mail" command which is in mailx RPM, usually.

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


Top
   
 Post subject:
PostPosted: Sat Oct 08, 2011 11:35 pm 
Offline
Senior Newbie

Joined: Thu Sep 22, 2011 1:10 pm
Posts: 16
Thanks, that was it.

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

_________________
-Abzstrak


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group