summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0d5d5f)
raw | patch | inline | side by side (parent: d0d5d5f)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 Aug 2010 15:39:24 +0000 (17:39 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 Aug 2010 15:39:24 +0000 (17:39 +0200) |
src/collectdctl.c | patch | blob | history | |
src/collectdctl.pod | patch | blob | history |
diff --git a/src/collectdctl.c b/src/collectdctl.c
index af413cf38170ba85b8778541ce8197bf6565b909..68b167508f7b214a7af9d0ccff8fec5e6ec3bc18 100644 (file)
--- a/src/collectdctl.c
+++ b/src/collectdctl.c
"Hostname defaults to the local hostname if omitted (e.g., uptime/uptime).\n"
"No error is returned if the specified identifier does not exist.\n"
- "\nExample:\n\n"
-
- " collectdctl flush plugin=rrdtool identifie=somehost/cpu-0/cpu-wait\n\n"
-
- "Flushes all CPU wait RRD values of the first CPU of the local host.\n"
- "I.e., writes all pending RRD updates of that data-source to disk.\n"
-
"\n"PACKAGE" "VERSION", http://collectd.org/\n"
"by Florian octo Forster <octo@verplant.org>\n"
"for contributions see `AUTHORS'\n"
diff --git a/src/collectdctl.pod b/src/collectdctl.pod
index 8bd8970529c502a15f13a1aae01ed567a0ddc846..aff67ef6dcf8138b3e4c07de67e575fc27ee7b57 100644 (file)
--- a/src/collectdctl.pod
+++ b/src/collectdctl.pod
error is returned if the specified identifier does not exist (this is a
limitation in the C<libcollectdclient> library).
+=head1 EXAMPLES
+
+=over 4
+
+=item C<collectdctl flush plugin=rrdtool identifier=somehost/cpu-0/cpu-wait>
+
+Flushes all CPU wait RRD values of the first CPU of the local host.
+I.E<nbsp>e., writes all pending RRD updates of that data-source to disk.
+
+=item C<for ident in `collectdctl listval | grep users/users`; do
+ collectdctl getval $ident;
+ done>
+
+Query the latest number of logged in users on all hosts known to the local
+collectd instance.
+
+=back
+
=head1 SEE ALSO
L<collectd(1)>