Search code examples
javasnmpactivemq-artemis

Monitoring ActiveMQ Artemis apart from Jolokia


I hope to monitor ActiveMQ Artemis instances by configuring and using a SNMP connector by means of known Java properties

-Dcom.sun.management.snmp.interface=127.0.0.1 -Dcom.sun.management.snmp.port=50000 -Dcom.sun.management.snmp.acl=true -Dcom.sun.management.snmp.acl.file=/app/artemis/.snmp.acl

As ActiveMQ instances were monitored, but it does not work -- No error message is reported for Java SNMP properties, but no process is listening the chosen UDP port.

Is still possible to monitor ActiveMQ Artemis this way? And using JMX?


Solution

  • The SNMP agent was removed from Java 11 so that may be why it's not working for you.

    However, you can certainly monitor ActiveMQ Artemis via JMX. See the documentation for more details on that.

    If you just want to keep an eye on metrics you can use a metrics plugin. Using a plugin like the Prometheus metrics plugin would allow you to see exactly what's happening on the broker, set up alerts, etc.