ok
so i have changed my plugin to the attached one
and now i am running my bean from the command line and setting the PROC_HOME_PROPERTY to hyp.proc.java.home using the following command
-> java -DPROC_HOME_PROPERTY=hyp.proc.java.home SimpleAgent
and when i run the plugin from the command line with the following command
-> C:\Program Files\Hyperic HQ Enterprise 3.2.3\agent-3.2.3-EE>java -jar pdk/lib/hq-product.jar -Dplugins.include=jmx,testBean -m discover -a metric -Dlog=debug
I get this as an output
[DEBUG] MIBTree - No MIBs in directory: C:\Program Files\Hyperic HQ Enterprise 3
.2.3\agent-3.2.3-EE\pdk\mibs
[INFO] ProductPluginManager - Loading plugin: system-plugin.jar
[DEBUG] SystemPlugin - sigar.mirror.procnet=null
[INFO] ProductPluginManager - Loading plugin: netservices-plugin.jar
[INFO] MeasurementPlugin - Register TCP Socket proxy for domain: socket
[INFO] MeasurementPlugin - Register HTTP proxy for domain: http
[INFO] MeasurementPlugin - Register HTTP proxy for domain: url.availability
[INFO] MeasurementPlugin - Register FTP proxy for domain: ftp
[INFO] ProductPluginManager - Loading plugin: sqlquery-plugin.jar
[DEBUG] ProductPluginManager - adding to sqlquery classpath:
[DEBUG] ProductPluginManager - d C:\Program Files\Hyperic HQ Enterprise 3.2.3
\agent-3.2.3-EE\pdk\lib\jdbc
[INFO] SQLQueryMeasurementPlugin - Registered proxy for domain: sql
[INFO] ProductPluginManager - Loading plugin: jmx-plugin.xml
[DEBUG] ProductPluginManager - adding to jmx classpath:
[DEBUG] ProductPluginManager - d C:\Program Files\Hyperic HQ Enterprise 3.2.3
\agent-3.2.3-EE\pdk\lib\mx4j
[INFO] ProductPluginManager - Loading plugin: testBean-plugin.xml
[DEBUG] ProductPluginManager - adding to testBean classpath:
[DEBUG] ProductPluginManager - d C:\Program Files\Hyperic HQ Enterprise 3.2.3
\agent-3.2.3-EE\pdk\lib\mx4j
[DEBUG] PluginDiscoverer - Adding Auto Scanners=[ServerSignature {stName=Sun JVM
1.5, match=[null], exclude=[null], regMatch=[null]}, ServerSignature {stName=He
lloThere Plugin 1.0, match=[null], exclude=[null], regMatch=[null]}]
[DEBUG] PluginDiscoverer - Adding Registry Scanners=[]
[DEBUG] AutoScan - Running AutoServerDetector for: Sun JVM 1.5
[DEBUG] AutoScan - Running AutoServerDetector for: HelloThere Plugin 1.0
[DEBUG] MxServerDetector - State.Name.sw=java,Args.*.sw=-Dhyp.proc.java.home= ma
tched 0 processes
[DEBUG] WindowsRegistryScan - Windows Registry Scan starting...
[DEBUG] WindowsRegistryScan - Windows Registry Scan completed, took: 0
0 servers detected
I am no longer getting any of the other errors i was before such as class not found but
problem is I am still getting 0 servers detected, any ideas?