[[inputs.snmp]]
Devices
agents = [ “xxxxxxxx” ]
community = “xxxxxxxxx”
version = 2
timeout = “15s”
interval = “60s”
retries = 3
max_repetitions = 3
System
[[inputs.snmp.field]]
name = “Hostname”
oid = “.1.3.6.1.2.1.1.5.0”
is_tag = true
Interfaces
[[inputs.snmp.table]]
name = “Dhanam-SyroOLT”
inherit_tags = [ “Hostname” ]
[[inputs.snmp.table.field]]
name = “MAC-Address”
oid = “.1.3.6.1.4.1.37950.1.1.5.12.1.12.1.6”
[[inputs.snmp.table.field]]
name = “ONU-Rx-Power”
oid = “.1.3.6.1.4.1.37950.1.1.5.12.2.1.8.1.7”
[[inputs.snmp.table.field]]
name = “ONU-Distance”
oid = “.1.3.6.1.4.1.37950.1.1.5.12.1.25.1.17”
[[inputs.snmp.table.field]]
name = “ONU-Interface”
oid = “.1.3.6.1.4.1.37950.1.1.5.12.1.12.1.10”
is_tag = true
What is wrong in this conf file
If i set is_tag = true for ONU-Interface telegraf gets mac address and onu interface together and leaves the other two. Then the other two is been flushed separately. If I remove the is_tag = true all are been flushed properly with all datas in single row. Could you help me with it?