I know this is an old thread but I am trying to get this working with
Hearbeat 2.1.4.
I have added this modified MailTo script in
/usr/share/ocf/resource.d/heartbeat but Im not sure how to get it working.
I added the sender name in haresources by adding ::sendername to the MailTo
section, but when envoked there are log entries that MailTo isnt a valid LSB
script. Is there any other script that needs modifying? Like in
/etc/ha.d/resource.d/?
Thanks in advance for any help.
Sean
Michael Schwartzkopff wrote:
>
> Am Freitag, 19. Dezember 2008 13:14 schrieb Tobias Appel:
>> Hi,
>>
>> I've wanted to test out your MailTo script, so I placed it
>> under /usr/lib/ocf/resource.d/heartbeat/MailTo2
>> but when I open the GUI now and try to add a native resource I get the
>> following message:
>> Failed to parse the metadata of resource agent: MailTo2
>>
>> I've had a quick look at the metadata but it looks identical to the
>> original one.
>>
>> Anyone else had this problem?
>>
>> Regards,
>> Tobi
>
> Did you also change the metadata to a new version i.e.
>
> meta_data() {
> cat <<END
> <?xml version="1.0"?>
> <!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd">
> <resource-agent name="MailTo2"> <----------- See here!
> <version>1.0</version>
>
>
>
> Otherwise heartbeat will mix it up with the existing one!
>
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: [email protected]
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
>
--
View this message in context:
http://old.nabble.com/Updated-MailTo-OCF-script-tp20975050p31120144.html
Sent from the Linux-HA mailing list archive at Nabble.com.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems