Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 35371 invoked from network); 25 Oct 2010 09:12:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 09:12:56 -0000 Received: (qmail 9032 invoked by uid 500); 25 Oct 2010 09:12:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 8980 invoked by uid 500); 25 Oct 2010 09:12:54 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 8971 invoked by uid 99); 25 Oct 2010 09:12:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 09:12:53 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 09:12:48 +0000 Received: by bwz1 with SMTP id 1so3263195bwz.2 for ; Mon, 25 Oct 2010 02:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=YbNcEfFELKvxyND+sGXAUgtYbNsaliwgjgYiB4ZF/rA=; b=kJJQFYgam9/Yfp5i0Fi6s1/Onj/K/FCFbmTTwrdenH8Vo47esXVJOgi5n2ROc9B6vR B77KLiU8BYaEErRrJeNPDtO2G1BM5NQWh+YXnhiPu/BgvNKNyJLRh59G5j0vtdMCFwUz Z37Dq4lrwuLzZtF4Iahx7ahp1jFqjl5DpIyhg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=XsDRgV70y1ZmiDBi5o+BrTV0eaMVQSd8MRdgLx24V8vRFq+UBqjwPb5nEdUpTS8V9d f/aXZFgJNbcnJzS4t4D9tFAv+/sk+/iYumgDqHU6bCgT+cv3lAP4pmOn3BqKPG+cQdCB xpm3pD6NHJ5PolkycYu54BC4O2tAFf16fxJVc= MIME-Version: 1.0 Received: by 10.204.113.197 with SMTP id b5mr3966070bkq.151.1287997947496; Mon, 25 Oct 2010 02:12:27 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.204.156.198 with HTTP; Mon, 25 Oct 2010 02:12:27 -0700 (PDT) In-Reply-To: <4CC221CA.5090700@nwea.org> References: <4CC221CA.5090700@nwea.org> Date: Mon, 25 Oct 2010 11:12:27 +0200 X-Google-Sender-Auth: J0ZSB4zpp2AEI8ZnW6efPMjJDh0 Message-ID: Subject: Re: jmx queries and nagios-jmx-plugin From: Dejan Bosanac To: users@activemq.apache.org, Joe Niski Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Joe, you should use something like this for the objectName org.apache.activemq:BrokerName=3Dlocalhost,Type=3DBroker You can see those names in JConsole (when positioning on the appropriate object). BTW. I didn't use Nagios with ActiveMQ, would love to hear your experience. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Sat, Oct 23, 2010 at 1:44 AM, Joe Niski wrote: > i'm trying to write jmx queries for the nagios-jmx-plugin (http://snippet= s.syabru.ch/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 scri= pt that comes with the plugin. > > i'm not getting very far with querying for ActiveMQ objects, and there ar= en't many examples out there. > > i can get JVM info easily with this query: > > check_jmx -U service:jmx:rmi:///jndi/rmi://192.168.22.149:1098/jmxrmi -O = "java.lang:type=3DMemory" -A HeapMemoryUsage -K used > > i can also probe the HotSpot compiler like this (although the plugin can'= t parse the return type): > > check_jmx -U service:jmx:rmi:///jndi/rmi://192.168.22.149:1098/jmxrmi -O = "com.sun.management:type=3DHotSpotDiagnostic" -A DiagnosticOptions > > if i connect to ActiveMQ's JMX port with Jconsole, i can browse the hiera= rchy of managed objects, but i can't seem to get the query right. When i tr= y: > > check_jmx -U service:jmx:rmi:///jndi/rmi://192.168.22.149:1098/jmxrmi -O = "org.apache.activemq:type=3DBroker" -A MemoryPercentUsage > > i get the error "objectName not found [org.apache.activemq:type=3DBroker]= " > > i simply want to read the attributes on the Broker that shows up in jcons= ole as a managed bean. > > Has anyone else used the nagios-jmx-plugin with ActiveMQ, or can anyone o= ffer tips for constructing JMX queries? > > thanks in advance, > Joe > > -- > > Joe Niski > IS Development | =A0NWEA > > PHONE 503.212.3382 =A0| =A0FAX 503.639.7873 > > NWEA.ORG<3D%22http://www.nwea.org/%22> =A0| =A0Partnering to Help All Kid= s Learn >