X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-exec.pod;h=10f68290e9bbc8ae8c7479364068f0b3ccae5b30;hb=f01dc914b9b0a8315d1a61b0939b4a45151cbe78;hp=d935c70d8a42d87597bb2f29920132800ded5083;hpb=d3fc6d0831a63af2e96300f488a9f8f5fc3183fb;p=collectd.git diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index d935c70d..10f68290 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -83,7 +83,7 @@ plugin within collectd. I identifies the type and number of values data-sets is available in the B file. See L for a description of the format of this file. -The I is an optional list of I, where each option if a +The I is an optional list of I, where each option is a key-value-pair. A list of currently understood options can be found below, all other options will be ignored. Values that contain spaces must be quoted with double quotes. @@ -230,6 +230,23 @@ associated with a certain value. =back +=head1 ENVIRONMENT + +The following environment variables are set by the plugin before calling +I: + +=over 4 + +=item COLLECTD_INTERVAL + +Value of the global interval setting. + +=item COLLECTD_HOSTNAME + +Hostname used by I to dispatch local values. + +=back + =head1 USING NAGIOS PLUGINS Though the interface is far from perfect, there are tons of plugins for Nagios. @@ -256,6 +273,14 @@ to make use of collectd's more powerful interface. The user, the binary is executed as, may not have root privileges, i.Ee. must have an UID that is non-zero. This is for your own good. +=item + +Early versions of the plugin did not use a command but treated all lines as if +they were arguments to the I command. When the I command was +implemented, this behavior was kept for lines which start with an unknown +command for backwards compatibility. This compatibility code has been removed +in I5>. + =back =head1 SEE ALSO