=head1 NAME collectd-exec - Documentation of collectd's C =head1 SYNOPSIS # See collectd.conf(5) LoadPlugin exec # ... Exec myuser myprog Exec otheruser /path/to/another/binary =head1 DESCRIPTION The C forks of an executable and reads back values that it writes to C. The executable is forked in a fashion similar to L: It is forked once and not again until it exits. If it exited, it will be forked again after at most I seconds. It is perfectly legal for the executable to run for a long time and continuously write values to C. If you want/need better performance or more functionality you should take a long look at the C, L. =head1 DATA FORMAT The forked executable is expected to print values to C. The expected format is as follows: =over 4 =item 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: 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. 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 =back When collectd exits it sends a B to all still running child-processes upon which they have to quit. =head1 CAVEATS =over 4 =item If the executable only writes one value and then exits I will be executed every I seconds. If I is short (the default is 10 seconds) this may result in serious system load. =item The user, the binary is executed as, may not have root privileges, i.Ee. must have an UID that is non-zero. =back =head1 SEE ALSO L, L, L, L, L, L =head1 AUTHOR Florian Forster Eocto@verplant.orgE =cut