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
TIMEOUT
The time in seconds to wait for a response when the script runs. Optional, but recommended.
PREFIX The script prefix, for example, sudo.
FILENAME
The path and name of script that returns the metric. Mandatory.
ARGUMENTS
A space-separated list of argument values to pass to the script.
METRIC
The name of the metric.
For example, exec:timeout=10,exec=sudo,file=pdk/scripts/metric_script.pl,args=sda:w/s.
Script Plug-in Examples
Use these examples to help you create your own script plug-ins.
Control Script Example
<?xml version="1.0" encoding="UTF-8"?>
<plugin name="hqcont-1-script-solution">
<script name="controlscript.bat">
<![CDATA[
echo controlscript called
]]>
</script>
<script name="controlscript.sh">
<![CDATA[
#!sh
echo controlscript called
]]>
</script>
<server name="HQCONT-1 My Control Server">
<property name="PROC_QUERY"
value="State.Name.eq=firefox"/>
<config>
<option default="State.Name.eq=firefox"
name="process.query"
description="Process Query for singleprocess"/>
</config>
<plugin type="autoinventory"
class="org.hyperic.hq.product.DaemonDetector"/>
<plugin type="measurement"
class="org.hyperic.hq.product.MeasurementPlugin"/>
<config>
<option name="program"
description="control program"
default="controlscript.bat"/>
</config>
<plugin type="control"
class="org.hyperic.hq.product.ScriptControlPlugin"/>
Endpoint Operations Management Agent Plug-in Development Kit
14 VMware, Inc.