Hi Strahil,<br /><br />Yes. It's simple but monitoring is done by an external service which sends alarm in case state of a hardware changes. It's a complex code and multiple devices are being monitored by it. If I ask pacemaker to monitor the device, this code has to be replicated in resource agent's monitor which is not an option. Instead of that, I plan to examine the alert in external service and fail the resource if alarm is critical. Hope that it clarifies the scenario.<br /><br />By the way, how could I fail the resource from outside. I see that option in crm_resource CLI (--fail) but not in pcs CLI.<br /><br /><br />Regards,<br />Ajay<br /><br /><br /><br /><br /><br />From: Strahil Nikolov <hunter86_bg@yahoo.com><br />Sent: Sat, 11 Apr 2020 18:50:25<br />To: Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org>,Ajay Srivastava <ajay_srivastava@rediffmail.com><br />Subject: Re: [ClusterLabs] Integrate external alerts with pcs cluster<br /><br />On April 11, 2020 2:04:23 PM GMT+03:00, Ajay Srivastava <ajay_srivastava@rediffmail.com> wrote:<br />>Hi,In my environment I have a pacemaker cluster running which has<br />>various software services as resource agents.These services have<br />>dependency on some hardware components. There is a service which<br />>monitors the hardware and sends alerts if anything is wrong with the<br />><a href="http://hardware.My" rel="external" target="_blank">hardware.My</a> plan is to add a resource agent for each hardware component<br />>with proper dependencies and fail this resource agent if I get a<br />>critical alert from hardware monitoring service. Please note that I do<br />>not want to use monitor functionality of resource agent as there is a<br />>service which is already doing same thing. I have two queries here -1)<br />>Does the approach look good ? Is there a better way to implement it in<br />>pacemaker cluster ?2) I can find --fail option in crm_resource but not<br />>in pcs cli. What would be the equivalent command in pcs as I am using<br />>pcs cli to configure the cluster ?Regards,Ajay&nbsp;<br /><br />Hi Ajay,<br /><br />Sadly I don't get the logic.<br />Based  on your  e-mail you want to create a cluster  resource that will fail based on hardware issue.<br />Yet, are you going to put  other cluster resources as a dependency (for example  -> ordering constraint that stops some  application in case some cpu has  stuck for  '120s') ?<br /><br />All the cluster  needs  is to know how to:<br />- Start the  resource<br />- Monitor  the liveliness  of the resource<br />- Stop the resource<br /><br /><br />Best Regards,<br />Strahil Nikolov<br>