summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c61f8f8)
raw | patch | inline | side by side (parent: c61f8f8)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 30 Mar 2007 20:03:52 +0000 (22:03 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Fri, 30 Mar 2007 20:03:52 +0000 (22:03 +0200) |
src/collectd.conf.in | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history | |
src/collectd.pod | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 5221c56ce6a6c09f229a730c3eb2a24877309d79..02a6eae327f7238b6c321bc1372ebee84d9f1450 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
# MaxConns 5
#</Plugin>
+#<Plugin exec>
+# Exec user "/path/to/exec"
+#</Plugin>
+
#<Plugin hddtemp>
# Host "127.0.0.1"
# Port 7634
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 6fc167b592d646121a8d95e775f2c56b04a6c97b..2ddc5cba611e220a7e17b9f5be9f40daa16a5204 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=back
+=head2 Plugin C<exec>
+
+Please make sure to read L<collectd/"SPECIAL PLUGINS"> before using this
+plugin. It containes valueable information on when the executable is executed
+and the output that is expected from it.
+
+=over 4
+
+=item B<Exec> I<User> I<Executable>
+
+Execute the executable I<Executable> as user I<User>.
+
+=back
+
=head2 Plugin C<hddtemp>
=over 4
diff --git a/src/collectd.pod b/src/collectd.pod
index 96c3fcdb43632cb9460c64a138be11ce1ee63375..bc65f57d5031c7d82c8cf3fff1b965dc8ac458b5 100644 (file)
--- a/src/collectd.pod
+++ b/src/collectd.pod
Each line is limited to 256 characters (including the newline character).
Longer lines will be ignored.
+=head2 exec
+
+The C<exec> plugin forks of an executable and reads back values that it writes
+to C<STDOUT>. The executable is forked kind of as L<init> does: It is forked
+once and not again until it exits. If it exited, it will be forked again after
+at most I<Interval> seconds. It is perfectly legal for the executable to run
+for a long time and continuously write values to C<STDOUT>.
+
+The forked executable is expected to print values to C<STDOUT>. 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<type>,I<type-instance>,I<value>>, where
+I<type> is either B<counter> or B<gauge>, I<type-instance> may not contain
+C<,> (comma), C</> (slash) and C<\0> (null byte) and I<value> is either an
+integer (if I<type> is B<counter>) or a floating-point number (if I<type> is
+B<gauge>).
+
+=back
+
+The values are always considered to be "fresh", i.E<nbsp>e. the time is set to
+"now".
+
+When collectd exits it sends a B<SIGTERM> to all still running
+child-processes upon which they have to quit.
+
=head2 mysql
Requires B<mysqlclient> to be installed. It connects to the database when