X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcollectd-exec.pod;h=ff4f2792647b094f0c53ba2b9b114c12f2f22606;hp=b95779dd5fc4414cb6e65bebcac880d6c048070a;hb=633c3966f770e4d46651a2fe219a18d8a9907a9f;hpb=619f112a584fcd89d2e8df7781a0a01341188189 diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index b95779dd..ff4f2792 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -1,3 +1,5 @@ +=encoding UTF-8 + =head1 NAME collectd-exec - Documentation of collectd's C @@ -116,12 +118,8 @@ case you're confused. 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. + PUTVAL leeloo/cpu-0/cpu-idle N:2299366 + PUTVAL alice/interface/if_octets-eth0 interval=10 1180647081:421465:479194 =item B [I] BI @@ -230,6 +228,23 @@ associated with a certain value. =back +=head1 ENVIRONMENT + +The following environment variables are set by the plugin before calling +I: + +=over 4 + +=item COLLECTD_INTERVAL + +Value of the global interval setting. + +=item COLLECTD_HOSTNAME + +Hostname used by I to dispatch local values. + +=back + =head1 USING NAGIOS PLUGINS Though the interface is far from perfect, there are tons of plugins for Nagios. @@ -256,6 +271,14 @@ to make use of collectd's more powerful interface. The user, the binary is executed as, may not have root privileges, i.Ee. must have an UID that is non-zero. This is for your own good. +=item + +Early versions of the plugin did not use a command but treated all lines as if +they were arguments to the I command. When the I command was +implemented, this behavior was kept for lines which start with an unknown +command for backwards compatibility. This compatibility code has been removed +in I5>. + =back =head1 SEE ALSO @@ -268,6 +291,6 @@ L, L =head1 AUTHOR -Florian Forster Eocto@verplant.orgE +Florian Forster Eocto@collectd.orgE =cut