Hi,
I have unresolved issue with telegraf SNMP plugin - I want to poll multiple network devices, but telegraf is gathering data from last input, ignoring rest. I found similar topic, where someone advised to comment out is_tag lines. I did that for test, but it didn’t help much, so I reverted the changes, but after putting old configback filtering by them returns no data at all!
My telegraf.conf looks like this:
[agent]
interval = "30s"
# OUTPUTS
[[outputs.influxdb]]
url = "http://localhost:8086" # required.
database = "dbname" # required.
# INPUTS
[[inputs.snmp]]
agents = [ "192.168.100.1:161"]
version = 2
community = "communitystring1"
name = "snmp"
[[inputs.snmp]]
agents = [ "192.161.100.2:161"]
version = 2
community = "communitystring2"
name = "snmp"
[[inputs.snmp]]
agents = [ "192.161.100.3:161"]
version = 2
community = "communitystring3"
name = "snmp"
[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true
[[inputs.snmp.table]]
name = "snmp"
inherit_tags = [ "hostname" ]
oid = "IF-MIB::ifXTable"
[[inputs.snmp.table.field]]
name = "ifName"
oid = "IF-MIB::ifName"
is_tag = true
[[inputs.snmp.table]]
name = "snmp"
inherit_tags = [ "hostname" ]
oid = "ENTITY-SENSOR-MIB::entPhySensorTable"
[[inputs.snmp.table.field]]
name = "entPhySensorUnitsDisplay"
oid = "ENTITY-SENSOR-MIB::entPhySensorUnitsDisplay"
is_tag = true
[[inputs.snmp.field]]
name = "crasNumSessions.0"
oid = "CISCO-REMOTE-ACCESS-MONITOR-MIB::crasNumSessions.0"
[[inputs.snmp.field]]
name = "CPU"
oid = "CISCO-PROCESS-MIB::cpmCPUTotal1min.1"
[[inputs.snmp.field]]
name = "Uptime"
oid = "DISMAN-EVENT-MIB::sysUpTimeInstance"