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 Key Description Values Defaults
fileScan.depth
The depth of
directory levels to
scan.
1, or higher.
Use -1 to indicate
unlimited depth.
6
fileScan.followSymlinks
Whether symlinks are
followed.
true or false false
A standalone invocation is implemented using -m discover and -p <server object name> options.
# java -jar dcs-tools-pdk.jar
-Dplugins.include=filescan-example
-Dlog=info
-DfileScan.scanDirs="C:\\Program Files (x86)"
-DfileScan.excludeDirs="\\WINNT,\\TEMP,\\TMP,\\Documents and Settings,\\Recycled"
-DfileScan.fsTypes="Local disks"
-DfileScan.depth=2
-DfileScan.followSymlinks=false
-m discover
-p filescanserver
MxServerDetector Class
The MxServerDetector class auto-discovers JMX servers.
Class Hierarchy
java.lang.Object
org.hyperic.hq.product.GenericPlugin
[org.hyperic.hq.product.ServerDetector|ServerDetector]
org.hyperic.hq.product.MxServerDetector
Resource Properties
This table describes the resource data that you can define in the plug-in descriptor for a plug-in that uses
MxServerDetector.
Property Description Usage
DEFAULT_CONFIG_FILE
The default configuration file to track.
PROC_MAIN_CLASS
PROC_HOME_PROPERTY
PROC_HOME_ENV
Example: Usage
jonas-plugin.xml
...
<plugin type="autoinventory"
class="org.hyperic.hq.product.jmx.MxServerDetector"/>
...
Chapter 4 Plug-In Support Classes
VMware, Inc. 57