Other FAQ entries included at the end of this page:
Frequently Asked Questions for Heartbeat Version 2
How Do I Write an OCF Compliant Resource Agent?
The OCF RA spec can be found here:
Is my Init Script Compatible with Heartbeat?
Init scripts are handled as LSBResourceAgents. Problems with them are quite common and the LSBResourceAgent page contains a series of steps to help you determine if the script is usable or not.
How do I know Heartbeat is installed correctly?
You can check your Heartbeat installation by running /usr/lib/heartbeat/BasicSanityCheck