[ClusterLabs] get status of each RG

Klaus Wenninger kwenning at redhat.com
Mon Jan 16 15:59:16 UTC 2017


On 01/16/2017 04:10 PM, Ken Gaillot wrote:
> On 01/15/2017 10:02 AM, Florin Portase wrote:
>> Hello,
>>
>> We're about to create some HPOM  (HP Operations Manager ) monitoring
>> policies for RHEL7 cluster environment.
>>
>> However, it looks like getting status of running defined RG seems way to
>> challenging comparing to rgmanager/cman
>>
>> SO, if under RHEL6:
>>
>> running clustat
>>
>> Service Name                                                     Owner
>> (Last)                                                     State
>>  ------- ----                                                     -----
>> ------                                                     -----
>>  service:rg_apache                                              
>> rgcs02_ha                                                       started
>>  service:rgcl0111                                                 
>> rgcs01_ha                                                       stopped
>>
>> Where rgcs02_01/02 are cluster nodes and  rgcl0102 rg_apache are
>> resource groups.
>>
>>
>> However , under RHEL7 ( pcs ) couldn't fine anything similar.
>>
>> I'm not interested in status of EACH refined resources, but only
>> resource groups
>>
>> something like:
>> RG1 running on node2 status: running
>> RG2 running on node1 status:stopped
> You're right, at the moment there is no easy way to do this with
> pacemaker. There is an outstanding feature request to add this ability
> to crm_mon.
>
> The closest thing now would be to write a script that checks the
> individual resources' statuses with crm_mon (= pcs status) to come up
> with a group status.

Kind of ugly but adding a dummy dependent on the Group you
want to monitor might do the trick.

>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org






More information about the Users mailing list