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