activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Niski <>
Subject jmx queries and nagios-jmx-plugin
Date Fri, 22 Oct 2010 23:44:10 GMT
i'm trying to write jmx queries for the nagios-jmx-plugin (
v 1.2.0, so our system engineers can set up automated alerts in our Nagios infrastructure.
i'm using the check_jmx script that comes with the plugin.

i'm not getting very far with querying for ActiveMQ objects, and there aren't many examples
out there.

i can get JVM info easily with this query:

check_jmx -U service:jmx:rmi:///jndi/rmi:// -O "java.lang:type=Memory"
-A HeapMemoryUsage -K used

i can also probe the HotSpot compiler like this (although the plugin can't parse the return

check_jmx -U service:jmx:rmi:///jndi/rmi:// -O ""
-A DiagnosticOptions

if i connect to ActiveMQ's JMX port with Jconsole, i can browse the hierarchy of managed objects,
but i can't seem to get the query right. When i try:

check_jmx -U service:jmx:rmi:///jndi/rmi:// -O "org.apache.activemq:type=Broker"
-A MemoryPercentUsage

i get the error "objectName not found [org.apache.activemq:type=Broker]"

i simply want to read the attributes on the Broker that shows up in jconsole as a managed

Has anyone else used the nagios-jmx-plugin with ActiveMQ, or can anyone offer tips for constructing
JMX queries?

thanks in advance,


Joe Niski
IS Development |  NWEA

PHONE 503.212.3382  |  FAX 503.639.7873

NWEA.ORG<3D%22>  |  Partnering to Help All Kids Learn

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message