vCenter

 View Only
  • 1.  Error during config of custom plugin

    Posted Sep 22, 2009 05:57 PM
    Hello all!

    I'm writing a custom plug-in to pull and monitor response times as generated by scripts running on LoadRunner. The idea is that we use LoadRunner to generate synthetic transactions on our applications.

    My approach so far is to create a server that knows how to connect to the database where the measurements are stored. Then a specific service for each application instance. Each service will have separate metrics depending on the steps in the synthetic transactions. The server will have the JDBC params as config options and the services will each have the app and script name as options.

    So far I have created a shell java class for the plug-in (LoadrunnerMeasurementPlugin.java) and a corresponding hq-plugin.xml. I am able to build and deploy the plug-in somewhat successfully. However, when I add the service and try to set its configuration properties I get an error in the server.log (see attached):

    InvalidConfigException: Invalid configuration: Plugin not found: measurement plugin name=LoadRunner 1.0 Looking Glass QA not found


    I'm really at a loss here because everything seem to be peachy up to this point. If someone could take a look and tell me where I have gone astray I would really appreciate it.

    Thanks in advance
    Dave
    NOTE: Cross-posting this from dev forums since there seems to be more traffic here.


  • 2.  RE: Error during config of custom plugin

    Posted Sep 22, 2009 05:58 PM
    Note: I have added a detector since my initial attmepts to try and find out what the heck is going on. It seems that there is some sort of plugin registry that I am missing. How do I register a plugin name?


  • 3.  RE: Error during config of custom plugin

    Posted Sep 23, 2009 10:51 PM
    Ok... so this is a RTFM moment but here is the final reason why my plugin wasn't being properly loaded and launched.
    1) I made the assumption that I could put my custom plugin into the standard directory where the server puts its plugins e.g. ./server-4.1.2-EE/hq-engine/server/default/deploy/hq.ear/hq-plugins/

    --->>> YOU CAN'T <<<---

    2) You MUST place your plugin in the directories as specified at this link:

    LINK


    You MUST follow the instructions in the section
    "Where to Place Custom-Plugin Files"


    Once I did that... bam... everything worked.