Hello Andrew, thanks for your hint! The code looks promising, but it's a lots of code, too. I only need the one-shot option from this tool.
When I try to compile crm_mon.c, the compiler moans that he can't find the headers "lha_internal.h" and "lib/crm/pengine/unpack.h" Both files don't exist in my filesystem. (I'm searched them by using 'locate'). Is it because I installed heartbeat with rpms? What should I do now? Should I copy these files from the tar ball (http://linux-ha.org/download/heartbeat-2.1.2.tar.gz) to the designated directories? For example the contents from "heartbeat-2.1.2/include" to "/usr/include/heartbeat/"? How do I have to handle this with the libaries? Another problem for me is that there are some conflicts with C++ keywords and invalid transformations (e.g. void* to resource_t*) Is it possible to make the macro "slist_iter" C++ compliant? Regards Stephan On Jan 8, 2008, at 3:20 AM, Andrew Beekhof wrote: > > On Jan 7, 2008, at 2:54 PM, Stephan Berlet wrote: > > > Hello, > > > > First of all I want to excuse me for my bad english! > > > > We use heartbeat 2.1.2-3 in a 2 node cluster, just to manage the > > virtual > > IP adress 172.30.4.170. We have a network service that have to run > > at both nodes to make sure they have a synchronous data set. > > Therefore both nodes have to know which one holds the virtual IP. > > I would like to implement that with the heartbeat API. > > If you're using the crm, then the correct API to use is from the > Policy Engine. > For an example, check out the source code for crm_mon. > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems HELPING HEADS for Hard- and Software ------------------------------------------------------------------------- Für Ihre Projekte entwickeln wir maßgeschneiderte Lösungen - schnell, flexibel und direkt vor Ort. Unser eingespieltes Team an erfahrenen Hard- und Software-Spezialisten unterstützt Sie dort, wo Sie uns brauchen. -------------------------------------------------------------------------- SysDesign GmbH Säntisstrasse 25 D-88079 Kressbronn am Bodensee Geschäftsführer: Franz Kleiner, Achim Solle Handelsregister: Ulm 632138 -------------------------------------------------------------------------- _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
