Bruening, Stefan wrote:
This ist the Result of grep -r MAILCMD /usr/lib/ocf/resource.d/*

/usr/lib/ocf/resource.d/heartbeat/.ocf-binaries:: ${MAILCMD:=}
/usr/lib/ocf/resource.d/heartbeat/MailTo:       $MAILCMD -s "$1" "$email"

Is anything wrong?
Well,
probably there is something wrong or we would not make this discussion ;-) . These lines should tell you that the OCF script uses an external program to send mails. This is a standard UNIX program called "mail". Normally it accepts a switch -s after which you can state a subject. This is represented with the '-s "$1"' thing, saying "use the subject given in variable $1". The assumption is that your mail program does not handle "-s" . You can chekc that by:

which mail
=> should yield "/bin/mail"

then do a
/bin/mail -s "test mail" [EMAIL PROTECTED] < /etc/hosts

This should send a mail with the subject "test mail" to the specified address. The content at this point is arbitrary. If that works you have proven that the problem is with the OCF script, if it gives an error your mail program does not handle -s.
(If the mail never arrives you have still another problem....) .
In case -s does not work you can just delete the '-s "$1"' portion and all should be well , but you have no subjct in your mail .

JC

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to