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):- SNMP traps are received and logged
- 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
:- OID resolution works inside the pod using
snmptranslate
- But Telegraf logs no indication of traps being received after a Helm upgrade
- OID resolution works inside the pod using
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!