[ClusterLabs] pacemaker alerts node_selector

Reid Wahl nwahl at redhat.com
Wed Nov 25 23:30:21 EST 2020


What version of Pacemaker are you using, and how does it behave?

Depending on the error/misbehavior you're experiencing, this might
have been me. Looks like in commit bd451763[1], I copied the
alerts-2.9.rng[2] schema instead of the alerts-2.10.rng[3] schema.

[1] https://github.com/ClusterLabs/pacemaker/commit/bd451763
[2] https://github.com/ClusterLabs/pacemaker/blob/master/xml/alerts-2.9.rng
[3] https://github.com/ClusterLabs/pacemaker/blob/master/xml/alerts-2.10.rng

On Wed, Nov 25, 2020 at 9:31 AM <vockinger at gmail.com> wrote:
>
> Hi, I would like to trigger an external script, if something happens on a specific node.
>
>
>
> In the documentation of alerts, i can see <select_nodes /> but whatever I put into the XML, it’s not working…..
>
>
>
> configuration>
>
>     <alerts>
>
>         <alert id="my-alert" path="/path/to/my-script.sh">
>
>             <select>
>
>               <select_nodes />
>
>               <select_fencing />
>
>             </select>
>
>             <recipient id="my-alert-recipient1" value="someuser at example.com"/>
>
>         </alert>
>
>     </alerts>
>
> </configuration>
>
> Can anybody send me an example about the right syntax ?
>
>
>
> Thank you very much……
>
>
>
> Best regards, Alfred
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/



-- 
Regards,

Reid Wahl, RHCA
Senior Software Maintenance Engineer, Red Hat
CEE - Platform Support Delivery - ClusterHA



More information about the Users mailing list