I am trying to write a simple xml plugin that checks for a script and has quick Control functionality i.e Run. Just like the Fileserver File service which I could use but the script, to force remote desktop access, is in the same path on each machine and it would be easier just to select it from Services.
I have been looking at the plugin documentation and just cannot figure out how to create the plugin.
This is what I have at the moment but while it shows up in Services it has no Control function but does show Availability. I suspect I am probably on the wrong path totally
<plugin>
<service name="Remote Access">
<config>
<option name="path"
description="OneClick"
default="C:\scripts\oneclick.bat"/>
</config>
<actions include="run"/>
<filter name="template" value="exec:file=%path%"/>
<metric name="Availability" template="${template}:Availability" indicator="true"/>
<plugin type="measurement" class="org.hyperic.hq.product.MeasurementPlugin" />
</service>
</plugin>
Cheers,