Telegraf SNMP trap plugin: Traps received with default MIBs only, but OIDs resolve only when custom MIBs are added

Hi,
I’m using Telegraf 1.34-alpine on Kubernetes with the snmp_trap input plugin. MIBs are mounted via a ConfigMap at runtime, and traps are sent to a Kubernetes Service on UDP port 7200.

Here’s the behavior I’m seeing:

  • With only the default MIBs (no MIBS/MIBDIRS env set):

    1. SNMP traps are received and logged
    2. OIDs are not resolved — errors like: Error resolving OID oid=.1.3.6.1.x.x, source=…: not found
  • When I add custom MIBs and set MIBS=ALL, MIBDIRS=/usr/share/snmp/mibs:/usr/share/snmp/mibs_custom:

    1. OID resolution works inside the pod using snmptranslate
    2. But Telegraf logs no indication of traps being received after a Helm upgrade

Only one pod runs at a time, and traps are sent to the Service, not a Pod IP. The goal is to have Telegraf receive traps consistently and resolve OIDs using both default and custom MIBs together.

Any help to get both working at the same time would be appreciated!

Thanks!