4 Replies Latest reply on Feb 25, 2015 3:34 AM by nptaras

    Unable to monitor ActiveMQ using custom agent plug-in

    nandhakumar

      Hi,

       

      I got the ActiveMQ plug-in from https://github.com/rafachies/rhq-plugins.git

      This contains just one descriptor rhq-plugin.xml file and it is extending the Generic JMX classes.

       

      I just created the plug-in .jar and installed in server. It has been activated in the server and agent. Please refer the attached log.txt for details.

       

      I have modified the activemq.xml as follows,

       

      <broker useJmx="true" brokerName="BROKER"….

           …

      <managementContext>

      <managementContext connectorPort="2011" jmxDomainName="test.domain"/>

      </managementContext>

          …….

      </broker>

       

      But, the RHQServer didn’t detect ActiveMQ automatically. So I have imported it using the following connection settings (Screenshot attached -  ActiceMQ_importDetails.png)

       

      1. Right click on agent and selected  ‘JMX server’ in import menu
      2. In the popup page selected connection setting template as ‘JDK 5’
      3. In the next page  - Deployment options
      4. Selected the Type = JSR 160,

      Connector address =  service:jmx:rmi:///jndi/rmi://localhost:2011/jmxrmi,

      Install URI = <ActiveMQ installation path>/lib,

       

       

      Successfully imported the JMX server and I can see the following inventories,

      1. Class Loading
      2. Compilation
      3. Logging
      4. Memory Susystem
      5. Operating system information
      6. Threading

       

      But it’s not displaying any metrics related to Queue or Topics.

       

      But i can see some entries in the 'ignored resource types'  in Administartion - configuration section. I am unable to import this to the inventory.(Screen shot attached -RHQScreenActiveMQ.png).


        • 1. Re: Unable to monitor ActiveMQ using custom agent plug-in
          arun2arunraj

          Hi NandhaKumar,

          Nandhakumar Gopalakaimal wrote:

          Successfully imported the JMX server and I can see the following inventories,

          You have imported the wrong resourceType. The ResourceType you have imported is JMX Server (That is not your ActiveMQ).

          Nandhakumar Gopalakaimal wrote:

          But i can see some entries in the 'ignored resource types'  in Administartion - configuration section. I am unable to import this to the inventory.(Screen shot attached -RHQScreenActiveMQ.png).

          It seems you have ignored the discovered resource (ActiveMQ ) without knowledge. So Go to Inventory Tab - Select the leftside window Resources in that click Discovery queue. Now select the dropdown bottom as "Ignored" or "New and Ignored" in the bottom of the page. Hit the refresh button. Find the ActiveMQ Server in the Discovery queue, Finally "UNIGNORE" it. Then the resource will be available for your import. Import the resource and have a fun with RHQ.

           

          Regards,

          ArunRaj

          1 of 1 people found this helpful
          • 2. Re: Unable to monitor ActiveMQ using custom agent plug-in
            nandhakumar

            Thanks Arun, apologies for a late reply, I am currently using Fuse-AMQ plugins to monitor the ActiveMQ, so didn't investigate further on the ActiveMQ custom plug-in.

            • 3. Re: Unable to monitor ActiveMQ using custom agent plug-in
              arun2arunraj

              You are always welcome.

              • 4. Re: Unable to monitor ActiveMQ using custom agent plug-in
                nptaras

                Hello, Arun, I have the same problem - i see ActiveMQ metrics in Metric collection, 1234.jpg

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                i see it in Ignored Resource Types, 12345.jpg

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                but i don`t see any activemq objects in inventory

                123.jpg

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                and when i go to Discovery queue menu and choose "New and Ignored" i do not see anything.

                What would you think about it?123456.jpg