vCenter

 View Only
  • 1.  Error during config of custom plugin

    Posted Sep 21, 2009 09:20 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

    Message was edited by: hannad


  • 2.  RE: Error during config of custom plugin

    Posted Sep 22, 2009 05:28 PM
    After a ton of experimentation my only guess is that maybe I am missing some sort of autodiscovery feature. Potentially I need to add the services to some list of services and then the error would be avoided. The name that it is looking for is a combination of the Server name (LoadRunner ), Server version (1.0), and Service name (Looking Glass QA):

    Caused by: org.hyperic.hq.measurement.monitor.LiveMeasurementException: Plugin not found: measurement plugin name=LoadRunner 1.0 Looking Glass QA not found

    Maybe if I implement the discoverServices method in a detector it will work?

    Is this required?


  • 3.  RE: Error during config of custom plugin

    Posted Sep 23, 2009 10:53 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.

    Message was edited by: hannad