I am delighted to hear there is subscription mechanism! I apologize if I have not read through the documentation thoroughly. Could you please point me to the documentation on CIB events and the subscription mechanism?
What is the protocol by which events are conveyed to subscribers? Is there a hello world example of how to subscribe to CIB events? Tx, /Uma ----- Original Message ----- From: Andrew Beekhof To: General Linux-HA mailing list Sent: Wed, 1 Apr 2009 06:51:21 +0000 (UTC) Subject: Re: [Linux-HA] Programmatic interface to CRM? On Tue, Mar 31, 2009 at 22:36, wrote: > Is there a programmatic interface to CRM available, by which > an application could query CIB and perhaps be notified (based > on callbacks or some such) about events such as transitions? you can subscribe to cib events. crm_mon does this to generate snmp and email alerts for resource actions. eventually we'll also support snmp queries and alert filters. > Alternatively, is there a way to have CRM trigger a script when > critical events occur? We have a central clearing house of > events from where events are ent out as notifications as > Syslog, SNMP, Email or Jabber. > > I would like to feed CRM events into this event clearing house. > > CRM documentations hints that such a mechanism is not yet available: > > TODO: Should traps/events be triggered from inside the different > > components themselves, or might it be a good idea to allow > clients to > "subscribe" to certain parts of the CIB and be > notified if a change > occurs? This would be helpful for > SNMP/CIM traps. (The later would be > somewhat alike FailSafe's cdbd) > > If neither is possible, could someone suggest an approximation > to this functionality? > > Regards, > > /Uma > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
