Custom mibs are used partally only?

root@telegraf:/# snmptable -u USER -a SHA -A ChangeMe! -x DES -X ChangeMe! -l authPriv 192.168.30.2 NAS-MIB::cpuTable
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (NAS-MIB): At line 1 in (none)
NAS-MIB::cpuTable: Unknown Object Identifier

root@telegraf:/# snmptable -u USER -a SHA -A ChangeMe! -x DES -X ChangeMe! -l authPriv 192.168.30.2 QTS-MIB::cpuTable
QTS-MIB::cpuTable: Unknown Object Identifier

This looks like snmptable is not able to find these either, which means telegraf certainly will not either.

This previous thread mentions needing to have snmp-mibs-downloader and download-mibs also this issue, walks a couple users through needing to ensure:

  • MIBS are available locally, which you say they are
  • Ensure that the permissions on the files are valid for other users, worth checking
  • Needing the additional SNMP packages

edit:

I am also tried to use snmptranslate to find if these oid are generally present within the container:

I would still try the above items. If you have it working on the container you are running telegraf, then it is probably a permissions issue with read the mibs. i.e. the telegraf user cannot read the file or something similar.