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: 2022-03-24T16:04:02Z E! [inputs.snmp_trap] Error resolving OID oid=.18.104.22.168.22.214.171.124.0, source=127.0.0.1: command timed out
.126.96.36.199.188.8.131.52.0 = sysUpTimeInstance
My telegraf snmp config is this:
service_address = “udp://localhost:9162”
path = ["/usr/share/snmp/mibs"]
version = “2c”
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:
What could be wrong here?