2009/5/15 Ricardo Clemente <rickcleme...@gmail.com> > Hi, > > I'm working on a module to consume all Nagios events and publish then > to activemq ( I would be glad to share this as soon as I complete it). > The module is written in C and my first idea was to use Openwire C > client. The motivation over other options as the rest interface, is > that the number of events per second is really high and a protocol > with persistent connection seems the best option. > > Unfortunately, I was not able to build the libopenwire, finding the > same issue as in this thread > ( > http://www.nabble.com/Problem-building-libOpenWire-using-Maven-to16558223.html#a16558223 > ). > I also found a post from Chirino that the focus was on the C++ client > (http://www.nabble.com/Openwire-C-client-issue-to3875953.html#a3875953) > which let me a little concerned about using the C implementation. > > So my questions are: should I use the C libopenwire? Is this library > considered ready for a live environment? And is there any working > build process for linux? > > Any one can direct me to the best C activemq integration option? Is > XMPP or STOMP better options with also good performance?
Hi Ricardo, We're already doing something similar with Nagios and ActiveMQ - several Nagios services publishing all check results onto ActiveMQ topics. Our achitecture is a bit different (we've implemented it as a nagios eventhandler instead of directly in the Nagios engine itself), but we've been using STOMP via Perl and not seeing any problems with performance at all. I don't see you having any problems using a C STOMP implementation either unless you're doing thousands of nagios calls a second. cheers, James.