[ClusterLabs] Integrate external alerts with pcs cluster

Strahil Nikolov hunter86_bg at yahoo.com
Sat Apr 11 09:20:31 EDT 2020


On April 11, 2020 2:04:23 PM GMT+03:00, Ajay Srivastava <ajay_srivastava at rediffmail.com> wrote:
>Hi,In my environment I have a pacemaker cluster running which has
>various software services as resource agents.These services have
>dependency on some hardware components. There is a service which
>monitors the hardware and sends alerts if anything is wrong with the
>hardware.My plan is to add a resource agent for each hardware component
>with proper dependencies and fail this resource agent if I get a
>critical alert from hardware monitoring service. Please note that I do
>not want to use monitor functionality of resource agent as there is a
>service which is already doing same thing. I have two queries here -1)
>Does the approach look good ? Is there a better way to implement it in
>pacemaker cluster ?2) I can find --fail option in crm_resource but not
>in pcs cli. What would be the equivalent command in pcs as I am using
>pcs cli to configure the cluster ?Regards,Ajay 

Hi Ajay, 

Sadly I don't get the logic.
Based  on your  e-mail you want to create a cluster  resource that will fail based on hardware issue.
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') ?

All the cluster  needs  is to know how to:
- Start the  resource
- Monitor  the liveliness  of the resource
- Stop the resource


Best Regards,
Strahil Nikolov


More information about the Users mailing list