<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Ken,</p>
<p>Somehow I've manged to make it working.</p>
<p>I had to use "(crm_resource -L  |grep "Resource Group:" |awk '{print $NF}')" and after to loop through resources...</p>
<p>But in the case of a stopped RG:  something like this is not so clear : "resource rgcl0111 is NOT running"</p>
<p><br /></p>
<p>On 2017-01-16 16:10, Ken Gaillot wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">On 01/15/2017 10:02 AM, Florin Portase wrote:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hello,<br /><br /> We're about to create some HPOM  (HP Operations Manager ) monitoring<br /> policies for RHEL7 cluster environment.<br /><br /> However, it looks like getting status of running defined RG seems way to<br /> challenging comparing to rgmanager/cman<br /><br /> SO, if under RHEL6:<br /><br /> running clustat<br /><br /> Service Name                                                     Owner<br /> (Last)                                                     State<br />  ------- ----                                                     -----<br /> ------                                                     -----<br />  service:rg_apache                                              <br /> rgcs02_ha                                                       started<br />  service:rgcl0111                                                 <br /> rgcs01_ha                                                       stopped<br /><br /> Where rgcs02_01/02 are cluster nodes and  rgcl0102 rg_apache are<br /> resource groups.<br /><br /><br /> However , under RHEL7 ( pcs ) couldn't fine anything similar.<br /><br /> I'm not interested in status of EACH refined resources, but only<br /> resource groups<br /><br /> something like:<br /> RG1 running on node2 status: running<br /> RG2 running on node1 status:stopped</blockquote>
<br /> You're right, at the moment there is no easy way to do this with<br /> pacemaker. There is an outstanding feature request to add this ability<br /> to crm_mon.<br /><br /> The closest thing now would be to write a script that checks the<br /> individual resources' statuses with crm_mon (= pcs status) to come up<br /> with a group status.<br /><br /><br /><br /> _______________________________________________<br /> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br /><a href="http://lists.clusterlabs.org/mailman/listinfo/users">http://lists.clusterlabs.org/mailman/listinfo/users</a><br /><br /> Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><br /> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br /> Bugs: <a href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a></div>
</blockquote>
<p><br /></p>

</body></html>