From 4b1b102eadc1a21e5be79b91410240acb40a3e73 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 23 Jan 2008 17:07:35 +0100 Subject: [PATCH] exec plugin: Implemented the `PUTNOTIF' command for external applications, too. Also changed the manpage so that lines without the `PUTVAL' are mentioned as being deprecated. --- src/collectd-exec.pod | 64 ++++++++++++++++++++++++++++++++++++--- src/collectd-unixsock.pod | 3 ++ src/exec.c | 13 ++++++-- 3 files changed, 73 insertions(+), 7 deletions(-) diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index fee83fb3..32c3863d 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -77,14 +77,14 @@ format is as follows: =over 4 -=item +=item Comments Each line beginning with a C<#> (hash mark) is ignored. -=item +=item B I [I] I -Other lines must consist of an I, an optional I and a -I, separated by a spaces. A description of these two parts follows: +Submits one or more values (identified by I, see below) to the +daemon which will dispatch it to all it's write-plugins. An I is of the form CBIB<->IBIB<->I> with both @@ -131,6 +131,62 @@ Since examples usually let one understand a lot better, here are some: leeloo/cpu-0/cpu-idle N:2299366 alice/interface/if_octets-eth0 interval=10 1180647081:421465:479194 +Since this action was the only one supported with older versions of the C all lines were treated as if they were prefixed with B. This is +still the case to maintain backwards compatibility but deprecated. + +=item B [I] BI + +Submits a notification to the daemon which will then dispatch it to all plugins +which have registered for receiving notifications. + +The B if followed by a list of options which further describe the +notification. The B option is special in that it will consume the rest +of the line as its value. The B, B, and B