X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcollectd-unixsock.pod;h=9fefccda155f36388e8f14766e46addd79cf01db;hb=60287b5590970eb5a92183d73324c2aec096a282;hp=971cb36dc0a138a9c826d5148178714e57078b91;hpb=7746d34c8ecc4fa984187cf2b1a93d1b6d3a061b;p=collectd.git diff --git a/src/collectd-unixsock.pod b/src/collectd-unixsock.pod index 971cb36d..9fefccda 100644 --- a/src/collectd-unixsock.pod +++ b/src/collectd-unixsock.pod @@ -1,3 +1,5 @@ +=encoding UTF-8 + =head1 NAME collectd-unixsock - Documentation of collectd's C @@ -17,11 +19,11 @@ collectd-unixsock - Documentation of collectd's C The C opens an UNIX-socket over which one can interact with the daemon. This can be used to use the values collected by collectd in other -applications, such as monitoring, or submit externally collected values to -collectd. +applications, such as monitoring solutions, or submit externally collected +values to collectd. -This plugin is used by L to check if some value is in a -certain range and exit with a Nagios-compatible exit code. +For example, this plugin is used by L to check if some +value is in a certain range and exit with a Nagios-compatible exit code. =head1 COMMANDS @@ -59,7 +61,7 @@ Example: <- | 1 Value found <- | value=1.260000e+00 -=item B +=item B [I] Returns a list of the values available in the value cache together with the time of the last update, so that querying applications can issue a B @@ -78,6 +80,28 @@ Example: <- | 1182204284 myhost/cpu-0/cpu-user ... +Valid options are B, B, B, B and +B. Each option takes a regular expression as its argument. If at +least one regular expression is supplied, only values where each appropriate +part of the identifier satisfies the given regular expression are returned. + +Example: + -> | LISTVAL plugin_instance="^$" + <- | 5 Matching values + <- | 1300311250.802 myhost/load/load + <- | 1300311250.802 myhost/memory/memory-buffered + <- | 1300311250.802 myhost/memory/memory-cached + <- | 1300311250.804 myhost/memory/memory-free + <- | 1300311250.802 myhost/memory/memory-used + +Regular expressions follow the I syntax (ERE) +described in L and will match case-sensitive. It is recommended to +enclose the regular expression in double quotes. Please note that you will +need to escape the backslash and double quote characters in this case. To +request all values from hosts with the German top level domain ".de", for +example, use: + LISTVAL host="\\.de$" + =item B I [I] I Submits one or more values (identified by I, see below) to the @@ -94,7 +118,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 @@ -130,10 +155,10 @@ Example: 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