On 08/05/2009 11:09 AM, Dominik Klein wrote:
> Tobias Appel wrote:
>> On 08/05/2009 10:30 AM, Dominik Klein wrote:
>>> Tobias Appel wrote:
>>>> So all I need is a command line tool to check wether a resource is
>>>> currently started or not. I tried to check the resources with the
>>>> failcount command, but it's always 0. And the crm_resource command is
>>>> used to configure a resource but does not seem to give me the status of
>>>> a resource.
>>>>
>>>> I know I can use crm_mon but I would rather have a small command since I
>>>> could include this in our monitoring tool (nagios).
>>> crm resource status<resid>
>>>
>>> Regards
>>> Dominik
>> Thanks for the fast reply Dominik,
>>
>> I forgot to mention that I still run Heartbeat version 2.1.4.
>> It seems crm_resource does not respond to the status flag. Or am I too
>> stupid?
>
> It is not crm_resource, I meant crm resource (notice the blank).
>
> But the crm command is not in 2.1.4
>
> Try crm_resource -W -r<resid>
>
> Regards
> Dominik


Thanks a lot - this is exactly what I needed!

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to