6.1
Table Of Contents
- Endpoint Operations Management Agent Plug-in Development Kit
- Contents
- About the Endpoint Operations Management Agent Plug-in Development Kit
- Introduction to Plug-in Development
- The Role of the Server and Agent in Plug-ins
- Technical Overview
- Plug-in Implementations
- Using Support Classes to Simplify a Plug-in
- Writing Plug-ins
- JMX Plug-in
- Script Plug-ins
- SNMP Plug-in
- JMX-Based Management
- Auto-Discovery of JMX Resources
- Configuration Properties for JMX Monitoring
- Creating a Custom JMX Plug-in
- Defining Service Types to Provide Management via Custom MBeans
- Defining an ObjectName to Access Custom MBeans
- Defining Configuration Properties to Appear in the User Interface
- Defining and Gathering Metrics
- Specifying the Availability Metric for MBeans
- Implementing Control Actions
- Defining the Server Auto-Inventory Element
- Discovering Custom Properties
- Running and Testing Plug-ins from the Command Line
- Using Auto-Discovery Support Classes in Plug-ins
- Working with Plug-in Descriptors
- Plug-In Support Classes
- Index
discoverServices(Confi
gResponse):List
protected List discoverServices(ConfigResponse config)
This runtime method discovers new services. Override this method to
discover service objects for the server object of the plug-in instance.
This method returns NULL if not overwritten.
Parameters: Parent configuration
Returns:
A list of ServerResource objects.
createServerResource(S
tring):ServerResource
protected ServerResource createServerResource(String installpath)
This is a helper method to initialize a ServerResource with default values.
Parameters: installpath The object installation path.
SNMPDectector Class
You can use the SNMPDetector class in XML-only plug-ins that extend the Network Device plug-in, or
SNMP-enabled servers, such as Squid.
Class Hierarchy
java.lang.Object
org.hyperic.hq.product.GenericPlugin
[org.hyperic.hq.product.ServerDetector|ServerDetector]
org.hyperic.hq.product.DaemonDetector
org.hyperic.hq.product.SNMPDetector
Resource Properties
This table describes the resource data that you can define in the plug-in descriptor for a plug-in that uses
SNMPDetector.
Property Usage
SNMP_INDEX_NAME
foo
SNMP_DESCRIPTION
foo
Example: Usage
<plugin>
<plugin type="autoinventory"
class="org.hyperic.hq.product.SNMPDetector"/>
...
</plugin>
Measurement Support Classes
There are a number of Endpoint Operations Management measurement support classes for use when
writing your plug-ins.
Use the following classes, as required.
n
MeasurementPlugin Class on page 65
The MeasurementPlugin class is a base implementation for measurement operations.
Endpoint Operations Management Agent Plug-in Development Kit
64 VMware, Inc.