Hi !
I have an environment with two SNMP Community.
First in v2, other in v3.
I don’t find how to configure two snmp community.
I’ve tried to configure like this :
[[inputs.snmp.2]]
or
[[inputs.snmp2]]
but nothing work.
First question : It’s possible ?
Second question : How ?
Thanks !
Hi!
I think this blog post might be quite helpful in your case.
It also provides an example of multiple instances of the same plugin:
# This would be your config for v2
[[inputs.snmp]]
## sample config
agents = ["udp://127.0.0.1:161"]
timeout = "5s"
[[inputs.snmp.table]]
oid = "HOST-RESOURCES-MIB::hrStorageTable"
name = "hrStorageTable"
inherit_tags = ["source"]
# and this for v3
[[inputs.snmp]]
## sample config
agents = ["udp://192.168.1.5:161"]
timeout = "60s"
[[inputs.snmp.table]]
oid = "HOST-RESOURCES-MIB::hrStorageTable"
name = "hrStorageTable"
inherit_tags = ["source"]
Good luck!