<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 14, 2023 at 9:01 AM Qing Feng Hao <<a href="mailto:haoqf@linux.vnet.ibm.com">haoqf@linux.vnet.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi Everyone,
<p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin-top:0px">Sorry to bother, I
have setup a HA cluster with pacemaker, and want to so some
special handling when VIP (virtualip) changes. VIP is the
virtual ip resource created by pcs like "* virtualip
(ocf::heartbeat:IPaddr2): Started <node ip>"<br>
</p>
<p style="box-sizing:border-box;margin-bottom:16px;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;margin-top:0px">But I didn't find it
in ClusterMon
<a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/configuring_the_red_hat_high_availability_add-on_with_pacemaker/s1-eventnotification-haar" target="_blank">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/configuring_the_red_hat_high_availability_add-on_with_pacemaker/s1-eventnotification-haar</a>,
this only mentions the fence event. I also checked
"./pacemaker/agents/ocf/ClusterMon.in":</p>
<div>
<pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;margin-top:0px;margin-bottom:16px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px"><code style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;padding:0px;margin:0px;background:transparent;border-radius:6px;word-break:normal;white-space:pre-wrap;border:0px;display:inline;overflow:visible;line-height:inherit"><parameter name="extra_options">
<longdesc lang="en">
Additional options to pass to crm_mon. Eg. -n -r
</longdesc>
<shortdesc lang="en">Extra options</shortdesc>
<content type="string" default="" />
</parameter>
</code></pre>
<p>Does anyone know if pacemaker support this kind of event
notification and how to subscribe? Thanks a lot.</p></div></div></div></blockquote><div>ClusterMon is kind of the legacy approach.</div><div>Did you look into alerts? </div><div><a href="https://clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Explained/html/alerts.html">https://clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Explained/html/alerts.html</a> <br></div><div><br></div><div>Klaus</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div>
<p>Best regards<br>
</p>
<p>QingFeng Hao</p>
<p><br>
</p>
</div>
</div>
</div>
_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/developers" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/developers</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div></div>