I created a customized version of the Script plugin which includes three metrics (each of which passes a different command line option to the script). I want to add multiple resources using this plugin (executing the same script) but each with different environment variables to modify the behaviour. However I get the following error:
 
A Script Server with the specified connection properties was already in inventory.
 
Can can I create a reusable script plugin like this but apply it to different resources? It seems that I would have to clone the plugin jar file multiple jars to work around this error (or at the very least change the executable each time)
 
See attached rhq-plugin.xml
 
Al Amyot | Consultant
Sierra Systems

(eHealth): 204-926-4257 (T): 204-942-2575  (F): 204-942-2047
444 St. Mary Avenue, Suite 1050
Winnipeg, MB  R3C 3T1

Management Consulting | System Integration | Managed Services
website: www.SierraSystems.com