cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using proprietary MIB files with the SNMP traps extension

AntonioSousa
DynaMight Guru
DynaMight Guru

If you develop your v2 extension, you can include proprietary MIB files, according to https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/data-sources/snmp-extensions/sn...

But, if you use the SNMP traps, you will get the traps into the logs, and there will be no way of getting the more friendly OID names.

Now, the same link above specifies that there are directories that have those MIB files, as can be seen below.

The question is if we can put our proprietary MIB files there, and if they will be appeaar in Logs with a more familiar OID name?

AntonioSousa_0-1676069234677.png

 

Antonio Sousa
8 REPLIES 8

krzysztof_suchc
Dynatrace Promoter
Dynatrace Promoter

Custom MIBs can be added by creating a custom extension. Link to the documentation https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/data-sources/snmp-extensions/sn.... Unfortunately, we recently found a bug and it will not work as designed. The team is working to solve it. Temporary workaround: the MIB files can be dropped into the default folder with MIB files.

  1. Linux: /opt/dynatrace/remotepluginmodule/agent/res/mib-files/
  2. Windows: C:\%PROGRAMFILES%\dynatrace\remotepluginmodule\agent\res\mib-files

@krzysztof_suchc 

Seems like the MIB files don't survive an AG update. Can you confirm?

Antonio Sousa

That is true, but from AG v265 there will be a permanent folder for custom MIB files. The documentation will be updated, but I believe the final paths will be:
Linux: /var/lib/dynatrace/remotepluginmodule/agent/conf/userdata/mib-files-custom
Windows: C:\ProgramData\dynatrace\remotepluginmodule\agent\conf\userdata\mib-files-custom

Hi @krzysztof_suchc ! Do we need to restart something on the AG. Seems permanent MIB Files is not immediately taken into account.

Observability Engineer at Phenisys - Dynatrace Professional

LukaszMal
Dynatrace Advocate
Dynatrace Advocate

@Hi @jegron if you manually put MIB files into a directory with the default package it will be overwritten by the default package in the next update. AG restart is required to load new MIB files, because modules are being loaded when the DataSource process starts. The proper way to add MIB files is to the custom extension zip package. They will be deployed and no further AG restarts are needed because a new process starts when the custom extension is assigned to an AG

jegron
DynaMight Champion
DynaMight Champion

Hi @LukaszMal !

I need to add custom mibs to interpret traps. So I added it to :

/var/lib/dynatrace/remotepluginmodule/agent/conf/userdata/mib-files-custom

But Dynatrace SaaS does not take it into account despite services restart. It works after several days. Is there a cache mechanism somewhere?

Observability Engineer at Phenisys - Dynatrace Professional

LukaszMal
Dynatrace Advocate
Dynatrace Advocate

Hi @jegron 

There is no cache mechanism, it should work after one AG restart

jegron
DynaMight Champion
DynaMight Champion

Ok, so I will open a case and provide log files for analysis 🙂

Thanks for your quick answers.

Observability Engineer at Phenisys - Dynatrace Professional

Featured Posts