Need help understanding SNMP Plugin Syntax

#1

I’m having a hard time finding the answers in the documentation for the following.

I’ll be using the config example as my example.

measurement name

name = “system”
[[inputs.snmp.field]]
name = “hostname”
oid = “.1.0.0.1.1”
[[inputs.snmp.field]]
name = “uptime”
oid = “.1.0.0.1.2”
[[inputs.snmp.field]]
name = “load”
oid = “.1.0.0.1.3”
[[inputs.snmp.field]]
oid = “HOST-RESOURCES-MIB::hrMemorySize”

[[inputs.snmp.table]]

measurement name

 name = "remote_servers"
 inherit_tags = [ "hostname" ]
 [[inputs.snmp.table.field]]
   name = "server"
   oid = ".1.0.0.0.1.0"
   is_tag = true
 [[inputs.snmp.table.field]]
   name = "connections"
   oid = ".1.0.0.0.1.1"
 [[inputs.snmp.table.field]]
   name = "latency"
   oid = ".1.0.0.0.1.2"

First off, why the double brackets? [] I cannot find why doubles are used when I don’t see any singles

What is the meaning of the two different sections?
inputs.snmp.feild & inputs.snmp.table

How do I actually get this to output to my InfluxDB?

#2

All of your questions are regarding TOML format. Find the required information on: