Following the instructions in the confluence Script Plugin, I created the following attached items:
Pdk/scripts/Mytest.bat
Pdk/plugins/mytest-plugin.xml
The plugin appears to be behaving correctly when I run an out of agent test as shown here:
C:\Java\hyperic\agent-3.1.4>java -jar ./pdk/lib/hq-product.jar -Dplugins.include=mytest
My Test Plugin Availability:
My Test Plugin:exec:file=pdk/scripts/mytest.bat,args=:Availability
=>100.0%
My Test Plugin measurement1:
My Test Plugin:exec:file=pdk/scripts/mytest.bat,args=:measurement1
=>111ms
My Test Plugin measurement2:
My Test Plugin:exec:file=pdk/scripts/mytest.bat,args=:measurement2
=>222ms
C:\Java\hyperic\agent-3.1.4>
But when I create a resource in my server it doesn’t appear to collect data (as shown in the attached doc).
Any suggestions will be greatly appreciated
Notes:
I am running on Windows XP
Hyperic version is 3.1.4