From bde49ea399fe5867ffce005e790439d2eb5796f7 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 13 Sep 2009 15:49:01 +0200 Subject: [PATCH] =?utf8?q?collectd-java(5):=20Document=20the=20=E2=80=9CGe?= =?utf8?q?nericJMX=E2=80=9D=20plugin.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/collectd-java.pod | 132 ++++++++++++++++++++++++++++++++++++++++++ src/collectd.conf.pod | 5 ++ 2 files changed, 137 insertions(+) diff --git a/src/collectd-java.pod b/src/collectd-java.pod index f441c82a..9c0c6eba 100644 --- a/src/collectd-java.pod +++ b/src/collectd-java.pod @@ -542,6 +542,138 @@ daemon: } } +=head1 PLUGINS + +The following plugins are implemented in I. Both, the B +option and the B block must be inside the +BPluginEjavaE> block (see above). + +=head2 GenericJMX plugin + +The GenericJMX plugin reads I (MBeans) from an I +using JMX. JMX is a generic framework to provide and query various management +information. The interface is used by Java processes to provide internal +statistics as well as by the I (JVM) to provide +information about the memory used, threads and so on. + +The configuration of the I consists of two blocks: I +blocks that define a mapping of MBean attributes to the “types” used by +I, and I blocks which define the parameters needed to +connect to an I and what data to collect. The configuration of the +I is similar in nature, in case you know it. + +=head3 MBean blocks + +I blocks specify what data is retrieved from I and how that data +is mapped on the I data types. The block requires one string +argument, a name. This name is used in the I blocks (see below) to +refer to a specific I block. Therefore, the names must be unique. + +The following options are recognized within I blocks: + +=over 4 + +=item B I + +Sets the pattern which is used to retrieve I from the I. +If more than one MBean is returned you should use the B option +(see below) to make the identifiers unique. + +See also: +L + +=item B I + +Prefixes the generated I with I. I<(optional)> + +=item B I + +The I used by JMX to identify I include so called +I<“properties”> which are basically key-value-pairs. If the given object name +is not unique and multiple MBeans are returned, the values of those properties +usually differ. You can use this option to build the I from +the appropriate property values. This option is optional and may be repeated to +generate the I from multiple property values. + +=item Bvalue /E> blocks + +The I blocks map one or more attributes of an I to a value list +in I. There must be at least one Value block within each I +block. + +=over 4 + +=item B type + +Sets the data set used within I to handle the values of the I +attribute. + +=item B I + +Works like the option of the same name directly beneath the I block, but +sets the type instance instead. I<(optional)> + +=item B I + +Works like the option of the same name directly beneath the I block, but +sets the type instance instead. I<(optional)> + +=item B B|B + +Set this to true if the returned attribute is a I. If set to +true, the keys within the I is appended to the +I. + +=item B I + +Sets the name of the attribute from which to read the value. You can access the +keys of composite types by using a dot to concatenate the key name to the +attribute name. For example: “attrib0.key42”. If B
is set to B +I must point to a I, otherwise it must point to a numeric +type. + +=back + +=back + +=head3 Connection blocks + +Connection blocks specify I to connect to an I and what data +to retrieve. The following configuration options are available: + +=over 4 + +=item B I + +Host name used when dispatching the values to I. The option sets this +field only, it is I used to connect to anything and doesn't need to be a +real, resolvable name. + +=item B I + +Specifies how the I can be reached. Any string accepted by the +I is valid. + +See also: +L + +=item B I + +Use I to authenticate to the server. If not configured, “monitorRole” +will be used. + +=item B I + +Use I to authenticate to the server. If not given, unauthenticated +access is used. + +=item B I + +Configures which of the I blocks to use with this connection. May be +repeated to collect multiple I from this server. + +=back + =head1 SEE ALSO L, diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 69f7308b..43a322bf 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1075,6 +1075,11 @@ Controls whether or not to recurse into subdirectories. Enabled by default. =back +=head2 Plugin C + +The I is written in I and therefore documented in +L. + =head2 Plugin C The I plugin received the multicast traffic sent by B, the -- 2.30.2