From: Florian Forster Date: Sat, 19 May 2007 10:36:41 +0000 (+0200) Subject: collectd-exec(5): Moved information about the `exec plugin' into an own manpage. X-Git-Tag: collectd-4.0.0~26 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4c07add37b18a1c86087a883222d9316b6b38ed6;p=collectd.git collectd-exec(5): Moved information about the `exec plugin' into an own manpage. --- diff --git a/src/Makefile.am b/src/Makefile.am index 9ee8668a..75d95d26 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -549,7 +549,7 @@ collectd_LDADD += "-dlopen" wireless.la collectd_DEPENDENCIES += wireless.la endif -dist_man_MANS = collectd.1 collectd-nagios.1 collectd.conf.5 +dist_man_MANS = collectd.1 collectd-nagios.1 collectd.conf.5 collectd-exec.5 #collectd_1_SOURCES = collectd.pod EXTRA_DIST = types.db diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod new file mode 100644 index 00000000..41825f0d --- /dev/null +++ b/src/collectd-exec.pod @@ -0,0 +1,70 @@ +=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. + +=back + +=head1 SEE ALSO + +L, L, L, L + +=head1 AUTHOR + +Florian Forster Eocto@verplant.orgE + +=cut diff --git a/src/collectd.pod b/src/collectd.pod index 4a62ce6b..5449d0eb 100644 --- a/src/collectd.pod +++ b/src/collectd.pod @@ -80,6 +80,10 @@ C and the C. With these plugins collectd can provide information about issues and significant situations to the user. Several loglevels let you suppress uninteresting messages. +Please note that some plugins, that provide other means of communicating with +the daemon, have manpages of their own to describe their functionality in more +detail. In particular those are L, ... + =head1 SPECIAL PLUGINS =head2 apache @@ -129,39 +133,6 @@ Successful spam checks (e.g. "BAYES_99", "SUBJECT_DRUG_GAP_C", ...): Each line is limited to 256 characters (including the newline character). Longer lines will be ignored. -=head2 exec - -The C plugin forks of an executable and reads back values that it writes -to C. The executable is forked kind of as L does: 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. - -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. - =head2 mysql Requires B to be installed. It connects to the database when @@ -350,9 +321,13 @@ The B homepage can be found at L. =head1 SEE ALSO -L, L, L, L, -L, +L, +L, +L, L, +L, +L, +L, L =head1 AUTHOR