X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=ad7cc21072522064e2c086ae18bb620dc0b1fa0f;hb=cad58fa441765c7a3e8868a0938a3b221bb307cc;hp=962fcfe7b9ae27261c8074aea6d2f42294cb8aca;hpb=0e36ca16a2e53e01cbc08ee9b4b9d26176022786;p=collectd.git
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 962fcfe7..ad7cc210 100644
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
@@ -454,7 +454,7 @@ finance page and dispatch the value to collectd.
Regex "]*> *([0-9]*\\.[0-9]+) *"
DSType "GaugeAverage"
- # Note: `stock_value' is not a standard type.
+ # Note: `stock_value' is not a standard type.
Type "stock_value"
Instance "AMD"
@@ -606,6 +606,9 @@ like this:
use a more strict database server, you may have to select from a dummy table or
something.)
+Please note that some databases, for example B, will fail if you
+include a semicolon at the end of the statement.
+
=item B I
=item B I
@@ -959,6 +962,88 @@ Controls whether or not to recurse into subdirectories. Enabled by default.
=back
+=head2 Plugin C
+
+The I plugin received the multicast traffic sent by B, the
+statistics collection daemon of Ganglia. Mappings for the standard "metrics"
+are built-in, custom mappings may be added via B blocks, see below.
+
+Synopsis:
+
+
+ MCReceiveFrom "239.2.11.71" "8649"
+
+ Type "swap"
+ TypeInstance "total"
+ DataSource "value"
+
+
+ Type "swap"
+ TypeInstance "free"
+ DataSource "value"
+
+
+
+The following metrics are built-in:
+
+=over 4
+
+=item *
+
+load_one, load_five, load_fifteen
+
+=item *
+
+cpu_user, cpu_system, cpu_idle, cpu_nice, cpu_wio
+
+=item *
+
+mem_free, mem_shared, mem_buffers, mem_cached, mem_total
+
+=item *
+
+bytes_in, bytes_out
+
+=item *
+
+pkts_in, pkts_out
+
+=back
+
+Available configuration options:
+
+=over 4
+
+=item B I [I]
+
+Sets sets the multicast group and UDP port to which to subscribe.
+
+Default: B<239.2.11.71>E/EB<8649>
+
+=item EB IE
+
+These blocks add a new metric conversion to the internal table. I, the
+string argument to the B block, is the metric name as used by Ganglia.
+
+=over 4
+
+=item B I
+
+Type to map this metric to. Required.
+
+=item B I
+
+Type-instance to use. Optional.
+
+=item B I
+
+Data source to map this metric to. If the configured type has exactly one data
+source, this is optional. Otherwise the option is required.
+
+=back
+
+=back
+
=head2 Plugin C
To get values from B collectd connects to B (127.0.0.1),
@@ -1083,6 +1168,62 @@ and all other interrupts are collected.
=back
+=head2 Plugin C
+
+The I plugin makes it possible to write extensions for collectd in Java.
+This section only discusses the syntax and semantic of the configuration
+options. For more in-depth information on the I plugin, please read
+L.
+
+Synopsis:
+
+
+ JVMArg "-verbose:jni"
+ JVMArg "-Djava.class.path=/opt/collectd/lib/collectd/bindings/java"
+ LoadPlugin "org.collectd.java.Foobar"
+
+ # To be parsed by the plugin
+
+
+
+Available configuration options:
+
+=over 4
+
+=item B I
+
+Argument that is to be passed to the I (JVM). This works
+exactly the way the arguments to the I binary on the command line work.
+Execute C--help> for details.
+
+Please note that B these options must appear B (i.Ee. above)
+any other options! When another option is found, the JVM will be started and
+later options will have to be ignored!
+
+=item B I
+
+Instantiates a new I object. The constructor of this object very
+likely then registers one or more callback methods with the server.
+
+See L for details.
+
+When the first such option is found, the virtual machine (JVM) is created. This
+means that all B options must appear before (i.Ee. above) all
+B options!
+
+=item B I
+
+The entire block is passed to the Java plugin as an
+I object.
+
+For this to work, the plugin has to register a configuration callback first,
+see L. This means, that the B block
+must appear after the appropriate B block. Also note, that I
+depends on the (Java) plugin registering the callback and is completely
+independent from the I argument passed to B.
+
+=back
+
=head2 Plugin C
This plugin allows CPU, disk and network load to be collected for virtualized
@@ -1234,19 +1375,50 @@ TCP-Port to connect to. Defaults to B<11211>.
=head2 Plugin C
-The C requires B to be installed. It connects to the
-database when started and keeps the connection up as long as possible. When the
-connection is interrupted for whatever reason it will try to re-connect. The
-plugin will complaint loudly in case anything goes wrong.
+The C requires B to be installed. It connects to
+one or more databases when started and keeps the connection up as long as
+possible. When the connection is interrupted for whatever reason it will try
+to re-connect. The plugin will complaint loudly in case anything goes wrong.
+
+This plugin issues the MySQL C / C command
+and collects information about MySQL network traffic, executed statements,
+requests, the query cache and threads by evaluating the
+C, C, C, C and C
+return values. Please refer to the B, I<5.1.6. Server
+Status Variables> for an explanation of these values.
+
+Optionally, master and slave statistics may be collected in a MySQL
+replication setup. In that case, information about the synchronization state
+of the nodes are collected by evaluating the C return value of the
+C command and the C,
+C and C return values of the
+C command. See the B,
+I<12.5.5.21 SHOW MASTER STATUS Syntax> and
+I<12.5.5.31 SHOW SLAVE STATUS Syntax> for details.
-This plugin issues the MySQL C command and collects information
-about MySQL network traffic, executed statements, requests, the query cache
-and threads by evaluating the C, C,
-C, C and C return values. Please refer to the
-B, I<5.1.6. Server Status Variables> for an
-explanation of these values.
+Synopsis:
-Use the following options to configure the plugin:
+
+
+ Host "hostname"
+ User "username"
+ Password "password"
+ Port "3306"
+ MasterStats true
+
+
+
+ Host "localhost"
+ Socket "/var/run/mysql/mysqld.sock"
+ SlaveStats true
+ SlaveNotifications true
+
+
+
+A B block defines one connection to a MySQL database. It accepts a
+single argument which specifies the name of the database. None of the other
+options are required. MySQL will use default values as documented in the
+section "mysql_real_connect()" in the B.
=over 4
@@ -1286,6 +1458,17 @@ only has any effect, if B is set to B (the default).
Otherwise, use the B option above. See the documentation for the
C function for details.
+=item B I
+
+=item B I
+
+Enable the collection of master / slave statistics in a replication setup.
+
+=item B I
+
+If enabled, the plugin sends a notification if the replication slave I/O and /
+or SQL threads are not running.
+
=back
=head2 Plugin C
@@ -1367,32 +1550,119 @@ specified statistics will not be collected.
=head2 Plugin C
+The Network plugin sends data to a remote instance of collectd, receives data
+from a remote instance, or both at the same time. Data which has been received
+from the network is usually not transmitted again, but this can be actived, see
+the B option below.
+
+The default IPv6 multicast group is C. The default IPv4
+multicast group is C<239.192.74.66>. The default I port is B<25826>.
+
+Both, B and B can be used as single option or as block. When
+used as block, given options are valid for this socket only. For example:
+
+
+ Server "collectd.internal.tld"
+
+ SecurityLevel "sign"
+ Username "myhostname"
+ Password "ohl0eQue"
+
+
+
+=over 4
+
+=item BServer> I [I]B>
+
+The B statement/block sets the server to send datagrams to. The
+statement may occur multiple times to send each datagram to multiple
+destinations.
+
+The argument I may be a hostname, an IPv4 address or an IPv6 address. The
+optional second argument specifies a port number or a service name. If not
+given, the default, B<25826>, is used.
+
+The following options are recognized within B blocks:
+
=over 4
-=item B I [I]
+=item B B|B|B
+
+Set the security you require for network communication. When the security level
+has been set to B, data sent over the network will be encrypted using
+I. The integrity of encrypted packets is ensured using I. When
+set to B, transmitted data is signed using the I message
+authentication code. When set to B, data is sent without any security.
+
+This feature is only available if the I plugin was linked with
+I.
+
+=item B I
+
+Sets the username to transmit. This is used by the server to lookup the
+password. See B below. All security levels except B require
+this setting.
+
+This feature is only available if the I plugin was linked with
+I.
-=item B I [I]
+=item B I
+
+Sets a password (shared secret) for this socket. All security levels except
+B require this setting.
+
+This feature is only available if the I plugin was linked with
+I.
+
+=back
-The B statement sets the server to send datagrams B. The statement
-may occur multiple times to send each datagram to multiple destinations.
+=item BListen> I [I]B>
The B statement sets the interfaces to bind to. When multiple
statements are found the daemon will bind to multiple interfaces.
The argument I may be a hostname, an IPv4 address or an IPv6 address. If
the argument is a multicast address the daemon will join that multicast group.
+The optional second argument specifies a port number or a service name. If not
+given, the default, B<25826>, is used.
-If no B statement is found the server tries join both, the default IPv6
-multicast group and the default IPv4 multicast group. If no B statement
-is found the client will try to send data to the IPv6 multicast group first. If
-that fails the client will try the IPv4 multicast group.
+The following options are recognized within CListenE> blocks:
-The default IPv6 multicast group is C. The default IPv4
-multicast group is C<239.192.74.66>.
+=over 4
+
+=item B B|B|B
+
+Set the security you require for network communication. When the security level
+has been set to B, only encrypted data will be accepted. The integrity
+of encrypted packets is ensured using I. When set to B, only
+signed and encrypted data is accepted. When set to B, all data will be
+accepted. If an B option was given (see below), encrypted data is
+decrypted if possible.
+
+This feature is only available if the I plugin was linked with
+I.
-The optional I argument sets the port to use. It can either be given
-using a numeric port number or a service name. If the argument is omitted the
-default port B<25826> is assumed.
+=item B I
+
+Sets a file in which usernames are mapped to passwords. These passwords are
+used to verify signatures and to decrypt encrypted network packets. If
+B is set to B, this is optional. If given, signed data is
+verified and encrypted packets are decrypted. Otherwise, signed data is
+accepted without checking the signature and encrypted data cannot be decrypted.
+For the other security levels this option is mandatory.
+
+The file format is very simple: Each line consists of a username followed by a
+colon and any number of spaces followed by the password. To demonstrate, an
+example file could look like this:
+
+ user0: foo
+ user1: bar
+
+Each time a packet is received, the modification time of the file is checked
+using L. If the file has been changed, the contents is re-read. While
+the file is being read, it is locked using L.
+
+=back
=item B I<1-255>
@@ -1630,6 +1900,11 @@ enables you to do that: By setting B to I the effect of
B is inverted: All selected interfaces are ignored and all other
interfaces are collected.
+=item B I
+
+Sets the interval in which all sensors should be read. If not specified, the
+global B setting is used.
+
=back
B The C plugin is experimental, because it doesn't yet
@@ -1738,6 +2013,13 @@ to collectd's plugin system. See L for its documentation.
=head2 Plugin C
+The I plugin starts a new thread which sends ICMP "ping" packets to the
+configured hosts periodically and measures the network latency. Whenever the
+C function of the plugin is called, it submits the average latency, the
+standard deviation and the drop rate for each host.
+
+Available configuration options:
+
=over 4
=item B I
@@ -1745,6 +2027,26 @@ to collectd's plugin system. See L for its documentation.
Host to ping periodically. This option may be repeated several times to ping
multiple hosts.
+=item B I
+
+Sets the interval in which to send ICMP echo packets to the configured hosts.
+This is B the interval in which statistics are queries from the plugin but
+the interval in which the hosts are "pinged". Therefore, the setting here
+should be smaller than or equal to the global B setting. Fractional
+times, such as "1.24" are allowed.
+
+Default: B<1.0>
+
+=item B I
+
+Time to wait for a response from the host to which an ICMP packet had been
+sent. If a reply was not received after I seconds, the host is assumed
+to be down or the packet to be dropped. This setting must be smaller than the
+B setting above for the plugin to work correctly. Fractional
+arguments are accepted.
+
+Default: B<0.9>
+
=item B I<0-255>
Sets the Time-To-Live of generated ICMP packets.
@@ -2231,6 +2533,39 @@ slashes.
=back
+=head2 Plugin C
+
+Collects a lot of information about various network protocols, such as I,
+I, I, etc.
+
+Available configuration options:
+
+=over 4
+
+=item B I
+
+Selects whether or not to select a specific value. The string being matched is
+of the form "I:I", where I will be used as the
+plugin instance and I will be used as type instance. An example of
+the string being used would be C.
+
+You can use regular expressions to match a large number of values with just one
+configuration option. To select all "extended" I values, you could use the
+following statement:
+
+ Value "/^TcpExt:/"
+
+Whether only matched values are selected or all matched values are ignored
+depends on the B. By default, only matched values are selected.
+If no value is configured at all, all values will be selected.
+
+=item B B|B
+
+If set to B, inverts the selection made by B, i.Ee. all
+matching values will be ignored.
+
+=back
+
=head2 Plugin C
The C plugin uses the RRDTool accelerator daemon, L,
@@ -2675,6 +3010,37 @@ will be collected.
=back
+=head2 Plugin C
+
+The I plugin connects to a device of "The Energy Detective", a device to
+measure power consumption. These devices are usually connected to a serial
+(RS232) or USB port. The plugin opens a configured device and tries to read the
+current energy readings. For more information on TED, visit
+L.
+
+Available configuration options:
+
+=over 4
+
+=item B I
+
+Path to the device on which TED is connected. collectd will need read and write
+permissions on that file.
+
+Default: B
+
+=item B I
+
+Apparently reading from TED is not that reliable. You can therefore configure a
+number of retries here. You only configure the I here, to if you
+specify zero, one reading will be performed (but no retries if that fails); if
+you specify three, a maximum of four readings are performed. Negative values
+are illegal.
+
+Default: B<0>
+
+=back
+
=head2 Plugin C
The C counts the number of currently established TCP