X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-exec.pod;h=27d0eedca01956d44787ef9b7c08a0a8caca9237;hb=20a7434400053998709109592ef17aa8c87a35ab;hp=0baf2ebe1c2972c800e8de73dbbce8c6590ee9b8;hpb=6c9f69a4507e2ec9490e2baf76146f4036aa2b8e;p=collectd.git diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index 0baf2ebe..27d0eedc 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -8,8 +8,8 @@ collectd-exec - Documentation of collectd's C LoadPlugin exec # ... - Exec myuser myprog - Exec otheruser /path/to/another/binary + Exec "myuser:mygroup" "myprog" + Exec "otheruser" "/path/to/another/binary" =head1 DESCRIPTION @@ -36,25 +36,48 @@ Each line beginning with a C<#> (hash mark) is ignored. =item -Other lines must consist of an I and a I, separated by -a space. A description of these two parts follows: +Other lines must consist of an I, an optional I and a +I, separated by a spaces. A description of these two parts follows: An I is of the form CBIB<->IBIB<->I> with both I-parts being optional. If they're omitted the hyphen must be omitted, too. -A I is a colon-separated list of values, prepended by the time -stamp in epoch, i.Ee. the same format RRDTool uses, see L. -As with the argument passed to RRDTool you can use B as the current time and -B for undefined values. However, undefined values can only passed for -B values. When setting B for a B data source the behavior is -undefined. +The I is an optional list of I, where each option if a +key-value-pair. A list of currently understood options can be found below, all +other options will be ignored. + +I is a colon-seperated list of the time and the values, each either +an integer if the data-source is a counter, of a double if the data-source if +of type "gauge". You can submit an undefined gauge-value by using B. When +submitting B to a counter the behavior is undefined. The time is given as +epoch (i.Ee. standard UNIX time). + +You can mix options and values, but the order is important: Options only +effect following values, so specifying an option as last field is allowed, but +useless. Also, an option applies to B following values, so you don't need +to re-set an option over and over again. + +The currently defined B are: + +=over 4 + +=item BI + +Gives the interval in which the data identified by I is being +collected. + +=back + +Please note that this is the same format as used in the B, see +L. There's also a bit more information on identifiers in +case you're confused. Since examples usually let one understand a lot better, here are some: leeloo/cpu-0/cpu-idle N:2299366 - alice/interface/if_octets-eth0 1180647081:421465:479194 + alice/interface/if_octets-eth0 interval=10 1180647081:421465:479194 =back