[ClusterLabs] Integrate external alerts with pcs cluster

Tomas Jelinek tojeline at redhat.com
Tue Apr 14 03:07:03 EDT 2020


Hi Ajay,

Dne 11. 04. 20 v 13:04 Ajay Srivastava napsal(a):
> 
> 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 ?

So you plan to fail the resource by calling crm_resource --fail from 
your monitoring service, right? How about the agent's monitor operation 
just checked the status / output of your existing monitoring service?

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

There is no equivalent for --fail in pcs. Just use crm_resource for that.

Regards,
Tomas

> 
> Regards,
> Ajay
> 
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
> 
> ClusterLabs home: https://www.clusterlabs.org/
> 



More information about the Users mailing list