X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcollectd-exec.pod;h=e95fac9f8de1a12508f8249558f26f8692313df0;hb=6b56d7219b34fe22ea80a5c8a570a1856f25a2c2;hp=fee83fb3d133126b85f93c88b001bb35a5036620;hpb=f4a528f0bc857a568cca1c1af589da8625b19e09;p=collectd.git diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index fee83fb3..e95fac9f 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -11,22 +11,20 @@ collectd-exec - Documentation of collectd's C Exec "myuser:mygroup" "myprog" Exec "otheruser" "/path/to/another/binary" "arg0" "arg1" NotificationExec "user" "/usr/lib/collectd/exec/handle_notification" - NagiosExec "nagios:nagios" "/usr/lib/nagios/plugins/check_something" =head1 DESCRIPTION -The C forks of an executable either to receive values, to dispatch -notifications to the outside world or to be able to use Nagios plugins. The -syntax of the configuration is explained in L but summarized -in the above synopsis. +The C forks of an executable either to receive values or to +dispatch notifications to the outside world. The syntax of the configuration is +explained in L but summarized in the above synopsis. If you want/need better performance or more functionality you should take a long look at the C, L. =head1 EXECUTABLE TYPES -There are currently three types of executables that can be executed by the +There are currently two types of executables that can be executed by the C: =over 4 @@ -57,6 +55,8 @@ run at once if multiple notifications are received. See L below for a description of the data passed to these programs. +=begin comment + =item C The executable is treated as a Nagios plugin. That means that the first line @@ -68,6 +68,8 @@ For information on how to write Nagios plugins please refer to the Nagios documentation. If a plugin works with Nagios but not with collectd please complain on the collectd mailing list instead. +=end comment + =back =head1 EXEC DATA FORMAT @@ -77,14 +79,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 +133,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