X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.conf.pod;h=6341574d4db5c36b62390bed529de8935ca32272;hb=55dcf13791059739dbbba11c7aaaabcf807ae2a3;hp=b9d85837b32d2f5e47e0d0c7a6a1fd65d4515895;hpb=762994729ef2f4795aa57ae2a1e02b4d4ddf8efe;p=collectd.git diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index b9d85837..6341574d 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -7791,7 +7791,9 @@ B IndexOID "IF-MIB::ifIndex" SizeOID "IF-MIB::ifNumber" - Index "PluginInstance" + + Source "PluginInstance" + Plugin "interface" OIDs "IF-MIB::ifDescr" @@ -7802,12 +7804,44 @@ B OIDs "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" + + + + Source "PluginInstance" + + Plugin "virt" + OIDs "LIBVIRT-HYPERVISOR-MIB::lvhAffinityDomainName" + + + Plugin "virt" + + Source "TypeInstance" + Regex "^vcpu_([0-9]{1,3})-cpu_[0-9]{1,3}$" + Group 1 + + OIDs "LIBVIRT-HYPERVISOR-MIB::lvhVCPUIndex" + + + Plugin "virt" + + Source "TypeInstance" + Regex "^vcpu_[0-9]{1,3}-cpu_([0-9]{1,3})$" + Group 1 + + OIDs "LIBVIRT-HYPERVISOR-MIB::lvhCPUIndex" + + + Plugin "virt" + Type "cpu_affinity" + OIDs "LIBVIRT-HYPERVISOR-MIB::lvhCPUAffinity" + +
There are two types of blocks that can be contained in the CPluginE snmp_agentE> block: B and B: -=head3 The B block +=head3 B block The B block defines a list OIDs that are to be handled. This block can define scalar or table OIDs. If B block is defined inside of B
@@ -7816,15 +7850,35 @@ The following options can be set: =over 4 -=item B I +=item B block -B can be set to one of the following values: "Hostname", "Plugin", -"PluginInstance", "Type", "TypeInstance". This value indicates which field of -corresponding collectd metric is taken as a SNMP table index. In case more than -one table B block has B property set, then multiple key index is -built. If B block defines scalar data type B has no effect and can +B block contains all data needed for proper index build of snmp table. +In case more than +one table B block has B block present then multiple key index is +built. If B block defines scalar data type B has no effect and can be omitted. +=over 8 + +=item B I + +B can be set to one of the following values: "Hostname", "Plugin", +"PluginInstance", "Type", "TypeInstance". This value indicates which field of +corresponding collectd metric is taken as a SNMP table index. + +=item B I + +B option can also be used to parse strings or numbers out of +specific field. For example: type-instance field which is "vcpu1-cpu2" can be +parsed into two numeric fields CPU = 2 and VCPU = 1 and can be later used +as a table index. + +=item B I + +B number can be specified in case groups are used in regex. + +=back + =item B I Read plugin name whose collected data will be mapped to specified OIDs.