Hi,
I see that netsnmp has returned to Telegraf in v1.22. So I downloaded this v1.22 version, as my MIBs won’t work well with v1.21.X due to the gosmi support.
For all snmp traps received in Telegraf, I get:
Mar 24 17:04:02 abcdefg telegraf[5694]: 2022-03-24T16:04:02Z E! [inputs.snmp_trap] Error resolving OID oid=.1.3.6.1.2.1.1.3.0, source=127.0.0.1: command timed out
.1.3.6.1.2.1.1.3.0 = sysUpTimeInstance
My telegraf snmp config is this:
[[inputs.snmp_trap]]
service_address = “udp://localhost:9162”
path = ["/usr/share/snmp/mibs"]
version = “2c”
[inputs.snmp_trap.tags]
objectClass = “TEST”
All relevant MIBs I test with are in /usr/share/snmp/mibs, there is also DISMAN-EVENT-MIB for sysUpTimeInstance. Doing a manual check on command line works:
snmptranslate .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance
What could be wrong here?
Best Regards,
Menno