From f4a528f0bc857a568cca1c1af589da8625b19e09 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 23 Jan 2008 09:42:33 +0100 Subject: [PATCH 1/1] collectd.conf(5), collectd-exec(5): Documented the `NotificationExec' and `NagiosExec' options. --- src/collectd-exec.pod | 6 ++++-- src/collectd.conf.pod | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index 1a91b7f9..fee83fb3 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -9,7 +9,7 @@ collectd-exec - Documentation of collectd's C # ... Exec "myuser:mygroup" "myprog" - Exec "otheruser" "/path/to/another/binary" + 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" @@ -17,7 +17,9 @@ collectd-exec - Documentation of collectd's C =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. +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. If you want/need better performance or more functionality you should take a long look at the C, L. diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 4671ae13..20c84b51 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -285,7 +285,11 @@ output that is expected from it. =over 4 -=item B I[:[I]] I +=item B I[:[I]] I [IargE> [IargE> ...]] + +=item B I[:[I]] I [IargE> [IargE> ...]] + +=item B I[:[I]] I [IargE> [IargE> ...]] Execute the executable I as user I. If the user name is followed by a colon and a group name, the effective group is set to that group. @@ -298,6 +302,16 @@ superuser privileges. If the daemon is run as an unprivileged user you must specify the same user/group here. If the daemon is run with superuser privileges, you must supply a non-root user here. +The executable may be followed by optional arguments that are passed to the +program. Please note that due to the configuration parsing numbers and boolean +values may be changed. If you want to be absolutely sure that something is +passed as-is please enclose it in quotes. + +The B, B, and B statements change the +semantics of the programs executed, i.Ee. the data passed to them and the +response expected from them. This is documented in great detail in +L. + =back =head2 Plugin C -- 2.11.0