I figured it out. Had to have EMS set to local and its working.
Regards,
Barry Barnett
Enterprise Queuing Services | (QS4U) Open Queuing Services
Wells Fargo
Cell: 803-207-7452
-----Original Message-----
From: Michael Burman [mailto:miburman@redhat.com]
Sent: Monday, March 07, 2016 8:37 AM
To: rhq-users(a)lists.fedorahosted.org
Subject: Re: RHQ Plugin to Zookeeper
Hi,
Just add new JMX resource from inventory. Select the machine -> Inventory -> Import
button on the bottom and "JMX Server" and then enter the information.
- Micke
----- Original Message -----
From: "barry barnett" <barry.barnett(a)wellsfargo.com>
To: rhq-users(a)lists.fedorahosted.org
Sent: Monday, March 7, 2016 3:09:56 PM
Subject: RE: RHQ Plugin to Zookeeper
Can you direct me to a default jmx plugin? I hadn't tried that.
Regards,
Barry
-----Original Message-----
From: Michael Burman [mailto:miburman@redhat.com]
Sent: Monday, March 07, 2016 8:08 AM
To: rhq-users(a)lists.fedorahosted.org
Subject: Re: RHQ Plugin to Zookeeper
Hi,
Do you see the values if you use a default JMX plugin?
- Micke
----- Original Message -----
From: "barry barnett" <barry.barnett(a)wellsfargo.com>
To: rhq-users(a)lists.fedorahosted.org
Sent: Monday, March 7, 2016 2:47:58 PM
Subject: RE: RHQ Plugin to Zookeeper
I have tried it with the %id% variable, and also the hard coded Replicatedid1 value.
Neither change what I see in the RHQ GUI.
Regards,
Barry
-----Original Message-----
From: Michael Burman [mailto:miburman@redhat.com]
Sent: Monday, March 07, 2016 6:52 AM
To: rhq-users(a)lists.fedorahosted.org
Subject: Re: RHQ Plugin to Zookeeper
Hi,
Are you sure the JMX path is correct? If you use jconsole (and remote JMX connection - not
local), do you see the same paths you're using here (especially with the %id% ?)
- Micke
----- Original Message -----
From: "barry barnett" <barry.barnett(a)wellsfargo.com>
To: rhq-users(a)lists.fedorahosted.org
Sent: Friday, March 4, 2016 6:03:31 PM
Subject: RHQ Plugin to Zookeeper
I am currently running RHQ server v4.13.1. We have installed ZooKeeper v3.4.6 and I am
trying to have RHQ monitor my ZK instances with a plugin (trying to develop). Once I build
the jar file, I load this into my ‘plugins’ RHQ directory, and perform a Scan via the RHQ
GUI to load in the module. I then bounce my RHQ agent on the ZK server. I can see that the
JMX server is being monitored, but when I add traits/metrics to the mix, I do not see
these appearing in RHQ. The logs say the traits have been loaded, but again, I don’t see
them in the GUI. Can anyone advise on what I might be doing incorrectly in my Plugin code?
<? xml version = "1.0" encoding = "UTF-8" ?> < plugin name =
"Apache-Zookeeper-RHQ-Plugin"
displayName = "Apache Zookeeper RHQ Plugin"
description = "Apache Zookeeper RHQ Plugin"
version = "1.0"
xsi:schemaLocation = "urn:xmlns:rhq-plugin
http://git.fedorahosted.org/cgit/rhq/rhq.git/plain/modules/core/client-ap...
urn:xmlns:rhq-configuration
http://git.fedorahosted.org/cgit/rhq/rhq.git/plain/modules/core/client-ap...
"
xmlns:xsi = "
http://www.w3.org/2001/XMLSchema-instance "
xmlns = "urn:xmlns:rhq-plugin"
xmlns:c = "urn:xmlns:rhq-configuration" > < depends plugin =
"JMX" useClasses = "true" />
<!-- ZooKeeperService -->
< service name = "ZooKeeperService"
description = "ZooKeeperService"
discovery = "org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class = "org.rhq.plugins.jmx.MBeanResourceComponent" > < runs-inside >
< parent-resource-type name = "JMX Server" plugin = "JMX" />
</ runs-inside > < plugin-configuration >
<!-- properties used by JMXDiscoveryComponent --> < c:simple-property name =
"connectorAddress" required = "false" type = "string"
default = "service:jmx:rmi:///jndi/rmi://localhost:20000/jmxrmi" description =
"JMX Service URL" /> < c:simple-property name = "principal"
required = "false" type = "string"
default = "admin" description = "JMX login principal/username" />
< c:simple-property name = "credentials" required = "false" type =
"password"
default = "activemq" description = "JMX login credentials/password"
/> < c:simple-property name = "objectName" default =
"org.apache.ZooKeeperService:name0=%id%" readOnly = "true" /> </
plugin-configuration > < metric description = "QuorumSize" displayName =
"QuorumSize" displayType = "summary" dataType = "trait"
property = "QuorumSize" /> </ service > </ plugin > Regards,
Barry
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/rhq-users@lists.fedorahosted.org