Re: [ClusterLabs] Triggering script on cib change

2020-09-16 Thread Strahil Nikolov
Theoretically the CIB is a file on each node,so a script that is looking for that file's timestamps or in the cluster's logs should work. Yet, I think that 'ocf:pacemaker:ClusterMon' can be used to notify and/or execute an external programm ( I guess a script) that will do your logic. A simple

Re: [ClusterLabs] Triggering script on cib change

2020-09-16 Thread Jehan-Guillaume de Rorthais
On Wed, 16 Sep 2020 19:57:12 + (UTC) Strahil Nikolov wrote: > Theoretically the CIB is a file on each node,so a script that is looking for > that file's timestamps or in the cluster's logs should work. Good one. This could be simple with a daemon relaying on inotify. Or even simpler, don't

Re: [ClusterLabs] Triggering script on cib change

2020-09-16 Thread Jehan-Guillaume de Rorthais
On Wed, 16 Sep 2020 02:20:35 -0400 Digimer wrote: > Is there a way to invoke a script when something happens with the > cluster? Be it a simple transition, stonith action, resource dis/enable > or resovery, etc? Not exactly a trigger on all CIB changes, but Alerts are triggered on much of the

[ClusterLabs] Triggering script on cib change

2020-09-16 Thread Digimer
Is there a way to invoke a script when something happens with the cluster? Be it a simple transition, stonith action, resource dis/enable or resovery, etc? -- Digimer Papers and Projects: https://alteeve.com/w/ "I am, somehow, less interested in the weight and convolutions of Einstein’s brain