From: Florian Forster Date: Wed, 27 Aug 2008 15:42:26 +0000 (+0200) Subject: collectd-{exec,unixsock}(5): Documented how to pass identifiers with spaces. X-Git-Tag: collectd-4.5.0~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f3094b9a9f352db008ccba248b9b58dd3de13937;p=collectd.git collectd-{exec,unixsock}(5): Documented how to pass identifiers with spaces. --- diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod index 59ce399d..d935c70d 100644 --- a/src/collectd-exec.pod +++ b/src/collectd-exec.pod @@ -85,7 +85,8 @@ description of the format of this file. The I is an optional list of I, where each option if a key-value-pair. A list of currently understood options can be found below, all -other options will be ignored. +other options will be ignored. Values that contain spaces must be quoted with +double quotes. I is a colon-separated list of the time and the values, each either an integer if the data-source is a counter, or a double if the data-source is @@ -139,10 +140,9 @@ Valid options are: =item BI (B) Sets the message of the notification. This is the message that will be made -accessible to the user, so it should contain some useful information. This -option must be the last option because the rest of the line will be its value, -even if there are spaces and equal-signs following it! This option is -mandatory. +accessible to the user, so it should contain some useful information. As with +all options: If the message includes spaces, it must be quoted with double +quotes. This option is mandatory. =item B|B|B (B) diff --git a/src/collectd-unixsock.pod b/src/collectd-unixsock.pod index 1e00baf3..ca00a6de 100644 --- a/src/collectd-unixsock.pod +++ b/src/collectd-unixsock.pod @@ -94,7 +94,8 @@ data-sets is available in the B file. The I is an optional list of I, where each option is a key-value-pair. A list of currently understood options can be found below, all -other options will be ignored. +other options will be ignored. Values that contain spaces must be quoted with +double quotes. I is a colon-separated list of the time and the values, each either an integer if the data-source is a counter, or a double if the data-source is @@ -142,10 +143,9 @@ Valid options are: =item BI (B) Sets the message of the notification. This is the message that will be made -accessible to the user, so it should contain some useful information. This -option must be the last option because the rest of the line will be its value, -even if there are spaces and equal-signs following it! This option is -mandatory. +accessible to the user, so it should contain some useful information. As with +all options: If the message includes spaces, it must be quoted with double +quotes. This option is mandatory. =item B|B|B (B) @@ -212,13 +212,15 @@ Value or value-lists are identified in a uniform fashion: I/I/I Where I and I are both either of type "I" or -"I-I". This sounds more complicated than it is, so here are +"I-I". If the identifier includes spaces, it must be quoted +using double quotes. This sounds more complicated than it is, so here are some examples: myhost/cpu-0/cpu-user myhost/load/load myhost/memory/memory-used myhost/disk-sda/disk_octets + "myups/snmp/temperature-Outlet 1" =head1 ABSTRACTION LAYER