<div dir="ltr">Yes, DBus would be one of the ways.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Thank you,<div>Kostia</div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Sep 26, 2016 at 3:33 PM, Klaus Wenninger <span dir="ltr"><<a href="mailto:kwenning@redhat.com" target="_blank">kwenning@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div>On 09/26/2016 02:29 PM, Kostiantyn
      Ponomarenko wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Correcting a typo.
        <div>* the same -> <span style="font-size:12.8px">I also was
            hoping to hear that I can do the same from c++ code.</span></div>
      </div>
    </blockquote>
    <br></span>
    There is no direct-API or so just the Agent-Interface.<br>
    But of course the Agent can be a binary compiled from c++ code<br>
    that communicates via some IPC with whoever.<br>
    <br>
    Where you thinking of e.g. a DBus interface?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Klaus</font></span><div><div class="h5"><br>
    <blockquote type="cite">
      <div class="gmail_extra"><br clear="all">
        <div>
          <div data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div dir="ltr">Thank you,
                  <div>Kostia</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Mon, Sep 26, 2016 at 3:28 PM,
          Kostiantyn Ponomarenko <span dir="ltr"><<a href="mailto:konstantin.ponomarenko@gmail.com" target="_blank">konstantin.ponomarenko@gmail.<wbr>com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Thanks for the answer.
              <div><br>
              </div>
              <div>I also was hoping to hear that I can do the case from
                c++ code.</div>
            </div>
            <div class="gmail_extra"><br clear="all">
              <div>
                <div data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">Thank you,
                        <div>Kostia</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <br>
                  <div class="gmail_quote">On Mon, Sep 26, 2016 at 1:59
                    PM, Klaus Wenninger <span dir="ltr"><<a href="mailto:kwenning@redhat.com" target="_blank">kwenning@redhat.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On
                        09/26/2016 12:29 PM, Kostiantyn Ponomarenko
                        wrote:<br>
                        > Hi,<br>
                        ><br>
                        > I am wondering if it is possible to sing up
                        for cluster events from<br>
                        > Pacemaker? Something like:<br>
                        >  - a node joins/leaves the cluster,<br>
                        >  - a resource fails,<br>
                        >  - a resources moves,<br>
                        >  - etc.<br>
                      </span>Sounds like a use case for the
                      alerts-feature coming with pacemaker-1.1.15.<br>
                      You can configure alert-agents to be called in the
                      cases mentioned.<br>
                      Meanwhile there should be high-level-tooling
                      support from crmsh & pcs.<br>
                      Legacy features for a similar purpose are
                      ClusterMon-RA & cluster-properties<br>
                      notification-agent/recipient.<br>
                      For further reading see:<br>
                      <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch07.html" rel="noreferrer" target="_blank">http://clusterlabs.org/doc/en-<wbr>US/Pacemaker/1.1/html/Pacemake<wbr>r_Explained/ch07.html</a><br>
                      <br>
                      ><br>
                      > Thank you,<br>
                      > Kostia<br>
                      ><br>
                      ><br>
                      > ______________________________<wbr>_________________<br>
                      > Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
                      > <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman<wbr>/listinfo/users</a><br>
                      ><br>
                      > Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
                      > Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc<wbr>/Cluster_from_Scratch.pdf</a><br>
                      > Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
                      <br>
                      <br>
                      <br>
                      ______________________________<wbr>_________________<br>
                      Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
                      <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman<wbr>/listinfo/users</a><br>
                      <br>
                      Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
                      Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc<wbr>/Cluster_from_Scratch.pdf</a><br>
                      Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <p><br>
    </p>
  </div></div></div>

</blockquote></div><br></div>