OpenNMS in ActiveMQ - activemq

I just learned that Apache ActiveMQ is shipping OpenNMS with it. Can anyone give me a short explanation about what OpenNMS is doing for Active MQ? My guess is it's using OpenNMS to detect all available brokers to form some kind of cluster (for failover etc.).
Now to the interesting part: is there a way to disable OpenNMS and if there is, what will be the consequences?
I'm thinking about it because OpenNMS I was pointed to some unfixed security issues within OpenNMS.
Thanks for your advice and regards. Sebastian

Related

Add RabbitMQ distributed tracing to Zipkin

We have been playing around with Brave(Java implementation of Zipkin) and successfully added tracing for REST and database calls. We would like to also add RabbitMQ to the tracing and would like some thoughts from anyone who may have had similar experiences that they could share.
We have tried to find some stuff online but can't seem to find an interceptor we could add to our rabbit implementation. Can you recommend anything?
Thanks in advance.
The best way to ask for a feature is using github issues.
To add a new transport such as RabbitMQ, you'd have to affect Brave (reporter) and Zipkin (collector)
https://github.com/openzipkin/zipkin/issues
https://github.com/openzipkin/brave/issues

How to receive tomcat critical alarms

As a recovery mechanism I need to write a software if my tomcat fails, I need to send email notification. Are there any api's supported from tomcat where I can receive critical events.
Any help on this regard would be very useful to me.
thanks
Lokesh
It depends: What do you consider a critical event?
Answering time above 2 sec/page?
Out of Memory
crash
database not available
...
You should look for generic monitoring tools, nagios is a good starting point and there are lots of equally good alternatives, open source as well as commercial.
Then monitor your tomcat installation, e.g. through standard http, on jmx, on process/OS level. Include your infrastructure: Database, Apache, others.

Are there any good alternatives to RabbitMQ for low-end setups?

I've been using RabbitMQ in a few setups now, and I can't shake the feeling that there must be something that's more easily set up. Despite it's conveniences it's hard to justify MQ for a solution that only processes a couple of thousand messages a day, simply because maintaining RabbitMQ is so much work.
Does anyone know an AMQP implementation with a simple installation and maintenance process?
For those who don't know it, RabbitMQ is an AMQP implementation written in Erlang. It is supposed to be very stable, but that is only really the case if you know enough about Erlang to avoid its problems. Whether it's memory limits or changes in the hostname, there is always a need to get deeper into it.
http://www.zeromq.org/ might be what you are looking for.
If you are on Windows you might use MSMQ
EDIT: I guess I missed the AMQP part of the question.
ActiveMQ seems to be good alternative, I was using RabbitMQ to set up "cluster" over WAN, which is not supported by RabbitMQ cluster, since it requires all machines within same location.
It seems ActiveMQ is better than RabbitMQ, in the sense that it is easy to set up and maintenance, for "cluster"
Apache Qpid is another open source AMQP broker: http://qpid.apache.org/
Disclaimer: I haven't used it myself so I can't tell you how it compares to RabbitMQ.

configuring haproxy in rabbitmq

i want to know how to configure haproxy and rabbitmq.i want to make my rabbitmq more scalable and available....
any link any idea anyone have
There is a tutorial provided by the RabbitMQ folks to do HA/Failover.
They use DRBD and Pacemaker, you can have a look at the link provided.

How can I observe what's happening under the hood of ActiveMQ?

I'm experiencing an issue with ActiveMQ and would like to trace/view all ActiveMQ activity. The only log file I can find is one associated with persistent data (if this is turned on). Are there any other log files I view or generate to tell me what's happening under the hood of ActiveMQ and why my consumers aren't consuming messages? Any other suggestions?
Thanks in advance!
activemq has a jmx interface that you can connect to.
this gives us access to consumer counts messages queued dequeue and all sorts of data on memory usage etc.
http://activemq.apache.org/jmx.html
Has all the details to get you started.
I find it excellent in finding out whats going on with activemq.
A quick firing up of jconsole and you will be well on your way to finding out what is going on.
Paul
Agreed. Also you can add the logging interceptor which helps.
Finally for browsing messages, moving them, creating/deleting queues and sending message I highly recommend the new web console for ActiveMQ, Camel and many other plugins: hawtio
Try HawtIO. Assuming you are not using Active MQ 5.9 you can add this feature to your broker. It is a much better web console and a good JMX monitoring utility as well.
http://www.christianposta.com/blog/?p=315