My first time posting here and I am also new to Telegraf, so please go easy on me!
My goal is that I would like to use Telegraf to receive SNMP traps, but the requirement is that I do not want the OIDs to be translated. Instead of:
I would like to have name=.220.127.116.11.18.104.22.168.22.214.171.124
So, I simply tried to remove all MIB files on the system from /usr/share/snmp/mibs directory, but then I have the error message in the Topic in the journalctl.
Perhaps there is an easier way to disable OID translation?
I have seen this post:
which seems to be the same issue, apparently this should have been solved last year, but I still experience this today.
Telegraf version is 1.27.3
@Hipska sorry, I don’t quite get it, what do you mean with: “…just use the OID tag on the trap…”?
Like I mentioned in my question, removing all MIBs from the system will still do some rudimentary translation, specifically .126.96.36.199.4.1 will still be translated to enterprises. I’m not quite sure why.
I managed to rig the plugins/snmp_trap/snmp_trap.go to have a no-op translator and use that by default. This seems to work.
I think the right way to do this could be to allow the snmp_translator in telegraf.conf to have the value none, which then does no translation. If I can find some time, I’ll open an issue, but I might be the only one who needs this
If there is some other way to achieve this, please do let me know!