Re: [Linux-HA] Command to see if a resource is started or not

2009-08-05 Thread Dominik Klein
Tobias Appel wrote:
 Hi,
 
 I need a command to see if a resource is started or not. Somehow my IPMI 
 resource does not always start, especially on one node (for example if I 
 reboot the node, or have a failover). There is no error and nothing, it 
 just does nothing at all.
 Usually I have to clean up the resource and then it comes back by itself.
 This is not really a problem since this only occurs after a failover or 
 reboot and when that happens, somebody usually takes a look at the 
 cluster anyway. But some people forget to start it again, and when we do 
 maintenance we have to turn it off on purpose since it would go wreck 
 havoc and turn off one of the nodes.
 
 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
___
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


Re: [Linux-HA] Command to see if a resource is started or not

2009-08-05 Thread Tobias Appel
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 statusresid

 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?

Bye,
Tobi
___
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


Re: [Linux-HA] Command to see if a resource is started or not

2009-08-05 Thread Dominik Klein
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 statusresid

 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
___
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


Re: [Linux-HA] Command to see if a resource is started or not

2009-08-05 Thread Tobias Appel
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 statusresid

 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 -rresid

 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