X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-snmp.pod;h=e8f0d6b3ff228d0060373cd546d626bb66178bb9;hb=1a252483e9c58ac64069a60d16ada29d5994d125;hp=1415cb17d4ca0dbeebff8ac991e62538d66b7281;hpb=b17fa8a7c71eb9fbc67702d8f1cf8a53fb2fe8a7;p=collectd.git diff --git a/src/collectd-snmp.pod b/src/collectd-snmp.pod index 1415cb17..e8f0d6b3 100644 --- a/src/collectd-snmp.pod +++ b/src/collectd-snmp.pod @@ -167,23 +167,42 @@ Defaults to an empty string. =item B I +=item B I + If B is set to I, I is interpreted as an SNMP-prefix that will -return a list of values. Those values are then used as the actual type-instance -or plugin-instance of dispatched metrics. An example would be the +return a list of values. Those values are then used as the actual type-instance, +plugin-instance or host of dispatched metrics. An example would be the C subtree. L from the SNMP distribution describes -the format of OIDs. When set to empty string, then "SUBID" will be used as the -instance. +the format of OIDs. When option is set to empty string, then "SUBID" will be used +as the value. -Prefix may be set for values with use of B option. +Prefix may be set for values with use of appropriate B, +B and B options. When B
is set to I these options has no effect. -Only one of these options may be used in the same B block. - -Defaults: +Defaults: When no one of these options is configured explicitly, B defaults to an empty string. -B is not configured. +=item B + +=item B + +=item B + +These options are intented to be used together with B, +B and B respectively. + +If set, I is preprended to values received by querying the agent. + +When B
is set to I these options has no effect. + +The C is an example where you need this setting: It has voltages of +the inlets, outlets and the battery of an UPS. However, it doesn't provide a +descriptive column for these voltages. In this case having 1, 2,E... as +instances is not enough, because the inlet voltages and outlet voltages may +both have the subids 1, 2,E... You can use this setting to distinguish +between the different voltages. =item B I @@ -201,17 +220,8 @@ Note what B
option must be set before setting B. =item B I -If B
is set to I, you may feel the need to add something to the -instance of the files. If set, I is prepended to the instance as -determined by querying the agent. When B
is set to I this option -has no effect. - -The C is an example where you need this setting: It has voltages of -the inlets, outlets and the battery of an UPS. However, it doesn't provide a -descriptive column for these voltages. In this case having 1, 2,E... as -instances is not enough, because the inlet voltages and outlet voltages may -both have the subids 1, 2,E... You can use this setting to distinguish -between the different voltages. +Attention: this option exists for backwards compatibility only and will be +removed in next major release. Please use B instead. =item B I [I ...]