X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=021d193664238f225e4f3070c7e2adba757017cd;hb=b49f3f8aca3b42e64427259dfc6c75242d37b91c;hp=f642c96125bf38e5756b1e7dd7df74e9956a612c;hpb=6cb2f62a2c988bd034513620466d440119079fb8;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index f642c961..021d1936 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -32,6 +32,12 @@ ignored. Values are either string, enclosed in double-quotes, B. String containing of only alphanumeric characters and underscores do not need to be quoted. +The configuration is read and processed in order, i.Ee. from top to +bottom. So the plugins are loaded in the order listed in this config file. It +is a good idea to load any logging plugins first in order to catch messages +from plugins during configuration. Also, the C option B occur +B the CPlugin ...E> block. + =head1 GLOBAL OPTIONS =over 4 @@ -252,7 +258,7 @@ Sets the socket-file which is to be created. =item B I -If running as root change the group of the UNIX-socket after it has been +If running as root change the group of the UNIX-socket after it has been created. Defaults to B. =item B I @@ -463,6 +469,9 @@ between, thus I<"foo:1234-1234-1234-1234">). Sets the log-level. If, for example, set to B, then all events with severity B, B, or B will be written to the logfile. +Please note that B is only available if collectd has been compiled with +debugging support. + =item B I Sets the file to write log messages to. The special strings B and @@ -914,6 +923,9 @@ Sets the log-level. If, for example, set to B, then all events with severity B, B, or B will be submitted to the syslog-daemon. +Please note that B is only available if collectd has been compiled with +debugging support. + =back =head2 Plugin C @@ -964,7 +976,7 @@ Sets the socket-file which is to be created. =item B I -If running as root change the group of the UNIX-socket after it has been +If running as root change the group of the UNIX-socket after it has been created. Defaults to B. =item B I @@ -1026,6 +1038,106 @@ the F filesystem that is required by this plugin. The B homepage can be found at L. +=head1 THRESHOLD CONFIGURATION + +Starting with version C<4.3.0> collectd has support for B. By that +we mean that the values are not only stored or sent somewhere, but that they +are judged and, if a problem is recognized, acted upon. The only action +collectd takes itself is to generate and dispatch a "notification". Plugins can +register to receive notifications and perform appropriate further actions. + +Since systems and what you expect them to do differ a lot, you can configure +B for your values freely. This gives you a lot of flexibility but +also a lot of responsibility. + +Every time a value is out of range a notification is dispatched. This means +that the idle percentage of your CPU needs to be less then the configured +threshold only once for a notification to be generated. There's no such thing +as a moving average or similar - at least not now. + +Also, all values that match a threshold are considered to be relevant or +"interesting". As a consequence collectd will issue a notification if they are +not received for twice the last timeout of the values. If, for example, some +hosts sends it's CPU statistics to the server every 60 seconds, a notification +will be dispatched after about 120 seconds. It may take a little longer because +the timeout is checked only once each B on the server. + +Here is a configuration example to get you started. Read below for more +information. + + + + Min 0.00 + Max 1000.00 + Invert false + Instance "bar" + + + + Instance "eth0" + + Max 10000000 + + + + + + Instance "idle" + Min 10 + + + + + Instance "cached" + Min 100000000 + + + + + +There are basically two types of configuration statements: The C, +C, and C blocks select the value for which a threshold should be +configured. The C and C blocks may be specified further using the +C option. You can combine the block by nesting the blocks, though +they must be nested in the above order, i.Ee. C may contain either +C and C blocks, C may only contain C blocks and +C may not contain other blocks. If multiple blocks apply to the same +value the most specific block is used. + +The other statements specify the threshold to configure. They B be +included in a C block. Currently the following statements are recognized: + +=over 4 + +=item B I + +Sets the upper bound of acceptable values. If unset defaults to positive +infinity. + +=item B I + +Sets the lower bound of acceptable values. If unset defaults to negative +infinity. + +=item B B|B + +If set to B the range of acceptable values is inverted, i.Ee. +values between B and B are not okay. Defaults, of course, to +B. + +=item B B|B + +Sets how often notifications are generated. If set to B one notification +will be generated for each value that is out of the acceptable range. If set to +B (the default) then a notification is only generated if a value is out +of range but the previous value was okay. + +This applies to missing values, too: If set to B a notification about a +missing value is generated once every B seconds. If set to B +only one such notification is generated until the value appears again. + +=back + =head1 SEE ALSO L,