vCenter

 View Only

how do I access product config from my server detector

  • 1.  how do I access product config from my server detector

    Posted Sep 14, 2009 05:46 PM
    Given the plugin xml below, how can I access the "foo.config" options from my getServerResources() implementation? .. can't seem to find anyway to access the data, despite the schema indicating that such product level config is allowed (http://support.hyperic.com/display/DOC/Plugin+XML+Descriptor+Syntax) .. note:
    the name (foo.config") attribute appears to be mandatory although the schema indicates its not.

    <?xml version="1.0"?>
    <plugin package="foo" name="Foo">

    <config name="foo.config">

    <option name="item1"
    description="item1description"
    default="bar"/>

    </config>

    <server name="Bar" version="1.0">

    <plugin type="autoinventory" class="foo.BarServerDetector"/>

    </server>

    </plugin>