VMware Cloud Community
Avi
Contributor
Contributor

A simple Script Plugin Tested OK but the UI does not collect data

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
0 Kudos
2 Replies
excowboy
Virtuoso
Virtuoso

Hi,

did you wait some minutes after creating the platform ? It takes a while until some metrics are visible. Did you restart the agent after deploying the plugin ?
Have a look at the Agent logfile after increasign debug-level in agent.properties:

agent.logLevel=DEBUG

Mirko
Avi
Contributor
Contributor

Hi Mirko,

Thanks for the advise (logging level).
After checking the agent's log (with DEBUG on) it turned out that the relative path for the script was OK for the testing outside the agent but not when the plugin is executed by the agent.

All is good now!

Cheers,

Avi
0 Kudos