Completely separate snmp configs

I’m using Telegraf to snag lots of data via snmp and shove that into Influx. I have devices that cannot utilize the same security standards as our primary gear (v3, SHA, AES) – so I’m going to need to make entirely separate config [inputs.snmp] blocks to accommodate devices with different settings. How would I go about doing that?

Should look something like this:

[[inputs.snmp]]
  agents = ["foo.example.org"]
  version = 3
  [[inputs.snmp.fields]]
    name = "hostname"
	oid = "RFC1213-MIB::sysName.0"

[[inputs.snmp]]
  agents = ["bar.example.org"]
  version = 2
  [[inputs.snmp.fields]]
    name = "hostname"
	oid = "RFC1213-MIB::sysName.0"

Well that was easy. Thank you!