[inputs.snmp]: How to configure snmp extend in telegraf (NET-SNMP-EXTEND-MIB)



Has anybody successfully configured [snmp.input] for snmp extend scripts.

On command line I’m able to retrieve the data:

sudo snmpwalk -v2c -c public xx.xx.xx.xx NET-SNMP-EXTEND-MIB::nsExtendOutput2Table
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“test1”.1 = STRING: Hello, world!
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“test2”.1 = STRING: Hello, world!
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“test2”.2 = STRING: Hi there
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“s0_counter”.1 = STRING: 17409
I want to push to influxDB value for s0_counter


 name = "extend"
 #inherit_tags = [ "hostname" ]
 oid = "NET-SNMP-EXTEND-MIB::nsExtendOutput2Table"

      name = "s0_counter"
      oid = "NET-SNMP-EXTEND-MIB::nsExtendOutLine."s0_counter".1"
      is_tag = true

I get ‘E! Error parsing /etc/telegraf/telegraf.conf, toml:’ error the oid line

If I use quotes
oid = ‘NET-SNMP-EXTEND-MIB::nsExtendOutLine.“s0_counter”.1’

no error, but not output as well.

Thank you for your help.