On 5/08/2008, at 10:29 PM, Michael Alger wrote:

It's a bit crude, but it works. The main problem is that if the
monitoring script stops, heartbeat has no idea and therefore can't
factor that into its decision-making process. I haven't determined
whether we can somehow store a "last updated" timestamp in the CIB
and make heartbeat pretend the score is 0 if it's not reasonably
recent; mostly because we haven't had a problem with the script
stopping unexpectedly.

Easy fix for that is to update the init script, and give it a status command that does the check you mentioned.

Create a monitor operation for your service, and it will run $initscript status periodically.

Cheers,

--
Nathan Ward




_______________________________________________
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