=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 fassion 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. =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 Any other line must be of the form C,I,I>, where I is either B or B, I may not contain C<,> (comma), C (slash) and C<\0> (null byte) and I is either an integer (if I is B) or a floating-point number (if I is B). =back The values are always considered to be "fresh", i.Ee. the time is set to "now". 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 =head1 AUTHOR Florian Forster Eocto@verplant.orgE =cut