On Mon, Jan 19, 2009 at 07:45, Junko IKEDA <[email protected]> wrote:
> Hi,
>
>> im using the crm_mon output to parse the cluster status for other
> applications.
>> Problem is, when heartbeat is either not running or there is some
> connection
>> issue in the cluster or some random issue i cant make out - crm_mon will
> never
>> return (ok as soon as the issue is repaired it may be is).
>>
>> The problem is, when calling crm_mon programmatically i would have to kill
> the
>> process manually after a specific timeout because it never exits.
>>
>> I suggest that either
>>
>> a) crm_mon --one-shot automatically terminates after X seconds
>
> Which version do you take?
> I think the following fix has been included in Heartbeat 2.1.3,
> so if heartbeat is not running, crm_mon --one-shot would be terminated
> immediately.
> http://hg.linux-ha.org/dev/rev/c6b788117bc9
> Am I mistaken??
>
>> b) add a new param --timeout to the command line that you dont wait
> forever
> Pacemaker will offer this new feature.
> I'm not sure Pacemaker 1.0 have already done this or not.

Actually I just overhauled crm_mon and in addition to making it event
driven (it gets diff updates as they happen instead of re-querying the
cib after a fixed interval) and adding support for snmp and mail
notifications, I cleaned up the startup code so these timeout wont be
needed.
_______________________________________________
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