Telegraf SNMP complex table query

Hi, I’m using Telegraf 1.16.1 to poll SNMP mib of Raritan Power Delivery Unit. It supports PDU2-MIB and I’m interested to poll following table:

PDU2-MIB::pdu2.configuration.outlets.outletConfigurationTable

I know how telegraf SNMP plugin is defined to poll normal tables. However, in this case Telegraf doesn’t regognize this as a table because it has two indexes. One for PDU (I only have one PDU) and one for outlet.

$ snmpwalk -v 2c -c public pdu.lab.something
1.3.6.1.4.1.13742.6.3.5.3
Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDU
PDU2-MIB::outletLabel.1.1 = STRING: 1
PDU2-MIB::outletLabel.1.2 = STRING: 2
PDU2-MIB::outletLabel.1.3 = STRING: 3
--clip--
PDU2-MIB::outletName.1.1 = STRING:
PDU2-MIB::outletName.1.2 = STRING: sdwan3
PDU2-MIB::outletName.1.3 = STRING:
---

I get following error:
Was that a table? SNMPv2-SMI::enterprises.13742.6.3.5.3: exit status 1

However, snmptable command regognizes table normally and prints headers and content.

ubuntu-user@grafana-vm:~$ snmptable -v 2c -c public pdu.lab.something 1.3.6.1.4.1.13742.6.3.5.3
Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDU
SNMP table: PDU2-MIB::outletConfigurationTable

 outletLabel   outletName    outletReceptacle outletPoleCount outletRatedVoltage outletRatedCurrent outletRatedVA outletDeviceCapabilities  outletPoleCapabilities outletPowerCyclingPowerOffPeriod       outletStateOnStartup outletUseGlobalPowerCyclingPowerOffPeriod outletSwitchable outletReceptacleDescriptor outletNonCritical outletSequenceDelay        outletPowerSource
       1              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       2       sdwan3 receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       3              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       4              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       5              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       6              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       7              receptacleIEC320C19               2           200-240V                16A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C19             false                   0 PDU2-MIB::inletLabel.1.1
       8              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
       9              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      10              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      11              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      12              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      13              receptacleIEC320C19               2           200-240V                16A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C19             false                   0 PDU2-MIB::inletLabel.1.1
      14              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      15              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      16              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      17       sdwan5 receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      18       sdwan4 receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      19              receptacleIEC320C19               2           200-240V                16A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C19             false                   0 PDU2-MIB::inletLabel.1.1
      20              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      21       sdwan1 receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      22              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      23              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1
      24              receptacleIEC320C13               2           200-240V                10A                "9F 04 02 00 00 00 00 " "00 00 00 00 00 00 00 "                               10 globalOutletStateOnStartup                                      true             true              IEC 60320 C13             false                   0 PDU2-MIB::inletLabel.1.1

Does telegraf support tables with two index numbers?

Here is my telegraf config:

[[inputs.snmp.table]]
  name = "outlet"
  inherit_tags = [ "hostname" ]
  oid = "1.3.6.1.4.1.13742.6.3.5.3"
  #oid = "PDU2-MIB::pdu2.configuration.outlets.outletConfigurationTable"

  [[inputs.snmp.table.field]]
    name = "outletLabel"
    oid = "1.3.6.1.4.1.13742.6.3.5.3.1.2"
    is_tag = true