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
<property name="INVENTORY_ID" value="sendmail"/>
<!-- hardwire this cosmetic to universal location -->
<property name="INSTALLPATH" value="/usr/sbin/sendmail"/>
<config>
<option name="process.query"
description="Process Query"
default="State.Name.eq=sendmail,State.Name.Pne=$1,CredName.User.eq=root"/>
<option name="exec"
description="Type "sudo" To Avoid Having Agent As Root"
default=""/>
</config>
<!--notifies the plugin to auto-discover one instance of each service-->
<property name="HAS_BUILTIN_SERVICES"
value="true"/>
<property name="PROC_QUERY"
value="State.Name.eq=sendmail"/>
<plugin type="autoinventory"
class="org.hyperic.hq.product.DaemonDetector"/>
<plugin type="measurement"
class="org.hyperic.hq.product.MeasurementPlugin"/>
<metric name="Availability"
alias="Availability"
template="sigar:Type=ProcState,Arg=%process.query%:State"
category="AVAILABILITY"
indicator="true"
units="percentage"
collectionType="dynamic"/>
<service name="Message Submission Process">
<config>
<option name="user"
default="smmsp"
description="Sendmail Message Submission Process User"/>
<option name="process.query"
default="State.Name.eq=sendmail,CredName.User.eq=%user%"
description="PTQL for Sendmail Message Submission Process"/>
</config>
<metric name="Availability"
template="sigar:Type=MultiProcCpu,Arg=%process.query%:Processes"
indicator="true"/>
&multi-process-metrics;
</service>
<service name="Root Daemon Process">
<plugin type="autoinventory"/>
<config>
Endpoint Operations Management Agent Plug-in Development Kit
18 VMware, Inc.