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
</metrics>
<server name="filescanserver">
<plugin
type="autoinventory"
class="CustomFileScanDetector">
</plugin>
<plugin
type="measurement"
class="org.hyperic.hq.product.MeasurementPlugin">
</plugin>
<scan>
<include name="/**/firefox.exe"/>
</scan>
<config>
<option
default="Exe.Name.eq=svc"
name="process.query"
description="Process Query for customserver">
</option>
</config>
<metrics
include="basic-process-metrics">
</metrics>
</server>
</plugin>
Standalone Invocation
The standalone plug-in invocation differs slightly from how the FileServerDetector and
AutoServerDetector classes are executed compared to a real agent. If a real agent is going to use the
FileServerDetector class, it executes that before the AutoServerDetector class. This standalone invocation
executes either one of these, but not both.
To test the FileServerDetector interface verify that at least one of the following parameters exist.
Property Key Description Values Defaults
fileScan.scanDirs
The directories to
scan.
A list of comma-
separated directories.
Windows: "C:\"
Unix: "/usr" , "/opt"
fileScan.excludeDirs
The directories to
exclude from a scan.
A list of comma-
separated directories.
Windows: "\WINNT" , "\TEMP",
"\TMP", "\Documents and
Settings", "\Recycled"
Linux: "/usr/doc", "/usr/dict",
"/usr/lib", "/usr/libexec",
"/usr/man", "/usr/tmp",
"/usr/include", "/usr/share",
"/usr/src",
"/usr/local/include",
"/usr/local/share",
"/usr/local/src"
fileScan.fsTypes
The file system types
to scan.
One of the following:
n
All disks
n
Local disks
n
Network-mounted
disks
All disks
Endpoint Operations Management Agent Plug-in Development Kit
56 VMware, Inc.